Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8fb87a19
authored
Nov 12, 2021
by
unknown
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
老客接口调整
1 parent
8892a025
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-ui/src/api/communityOperating/oldCustomer.js
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
8fb87a1
...
@@ -9,10 +9,13 @@
...
@@ -9,10 +9,13 @@
<div
class=
"group"
>
<div
class=
"group"
>
<van-cell
class=
"group-tags"
title=
"发送给客户群"
>
<van-cell
class=
"group-tags"
title=
"发送给客户群"
>
<template
#
default
>
<template
#
default
>
<template
v-for=
"group of task.groupList.slice(0, 2)"
>
<
!--
<
template
v-for=
"group of task.groupList.slice(0, 2)"
>
<van-tag
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
<van-tag
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
</
template
>
-->
<
template
v-if=
"task.groupList && task.groupList.length > 0"
>
<van-tag
v-for=
"group of task.groupList.slice(0, 2)"
:key=
"group.chatId"
size=
"large"
>
{{
group
.
groupName
}}
</van-tag>
</
template
>
</
template
>
<
template
v-if=
"task.groupList.length > 2"
>
<
template
v-if=
"task.groupList
&& task.groupList
.length > 2"
>
<van-tag
size=
"large"
>
...
</van-tag>
<van-tag
size=
"large"
>
...
</van-tag>
</
template
>
</
template
>
</template>
</template>
...
@@ -195,7 +198,8 @@ export default {
...
@@ -195,7 +198,8 @@ export default {
showTodo
()
{
showTodo
()
{
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
todoMembers
.
map
((
m
)
=>
m
.
name
)
const
namesMap
=
this
.
todoMembers
.
map
((
m
)
=>
m
.
name
||
''
)
const
names
=
namesMap
.
filter
(
m
=>
m
!==
''
)
if
(
this
.
todoMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
if
(
this
.
todoMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
todoMembers
.
length
+
'人'
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
todoMembers
.
length
+
'人'
...
@@ -215,7 +219,8 @@ export default {
...
@@ -215,7 +219,8 @@ export default {
showDone
()
{
showDone
()
{
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
doneMembers
.
map
((
m
)
=>
m
.
name
)
const
namesMap
=
this
.
doneMembers
.
map
((
m
)
=>
m
.
name
||
''
)
const
names
=
namesMap
.
filter
(
m
=>
m
!==
''
)
if
(
this
.
doneMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
if
(
this
.
doneMembers
.
length
<=
2
)
return
names
.
join
(
'、'
)
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
doneMembers
.
length
+
'人'
return
names
[
0
]
+
'、'
+
names
[
1
]
+
'等'
+
this
.
doneMembers
.
length
+
'人'
...
...
linkwe-ui/src/api/communityOperating/oldCustomer.js
View file @
8fb87a1
...
@@ -91,9 +91,10 @@ export function remove(ids) {
...
@@ -91,9 +91,10 @@ export function remove(ids) {
* @param {*} params
* @param {*} params
* id: 老客标签建群任务ID
* id: 老客标签建群任务ID
*/
*/
export
function
getStat
(
id
)
{
export
function
getStat
(
id
,
params
)
{
return
request
({
return
request
({
url
:
service
+
'/stat/'
+
id
,
url
:
service
+
'/stat/'
+
id
,
method
:
'get'
,
method
:
'get'
,
params
})
})
}
}
\ No newline at end of file
\ No newline at end of file
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
View file @
8fb87a1
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
page
&&
(
this
.
customerQuery
.
pageNum
=
page
)
page
&&
(
this
.
customerQuery
.
pageNum
=
page
)
this
.
customerLoading
=
true
this
.
customerLoading
=
true
getStat
(
this
.
customerSearchId
)
getStat
(
this
.
customerSearchId
,
this
.
customerQuery
)
.
then
(({
rows
,
total
})
=>
{
.
then
(({
rows
,
total
})
=>
{
this
.
customerList
=
rows
this
.
customerList
=
rows
this
.
customerTotal
=
+
total
this
.
customerTotal
=
+
total
...
@@ -127,10 +127,9 @@ export default {
...
@@ -127,10 +127,9 @@ export default {
},
},
// 获取显示用tag字符串
// 获取显示用tag字符串
getDisplayTags
(
row
)
{
getDisplayTags
(
row
)
{
if
(
!
(
row
&&
row
.
length
>
0
))
return
''
if
(
!
(
row
&&
row
.
tagList
.
length
>
0
))
return
''
const
tags
=
row
.
tagList
.
map
((
t
)
=>
(
t
&&
t
.
name
?
t
.
name
:
''
))
return
tags
.
join
(
' '
)
return
row
.
tagList
.
join
(
' '
)
},
},
// 批量删除
// 批量删除
handleBulkRemove
()
{
handleBulkRemove
()
{
...
@@ -198,15 +197,15 @@ export default {
...
@@ -198,15 +197,15 @@ export default {
},
},
// 客户统计查询
// 客户统计查询
customerSearch
()
{
customerSearch
()
{
//
this.getStat()
this
.
getStat
()
this
.
customerFilter
()
//
this.customerFilter()
},
},
// 客户统计重置
// 客户统计重置
resetCustomerQuery
()
{
resetCustomerQuery
()
{
this
.
$refs
[
'customerForm'
].
resetFields
()
this
.
$refs
[
'customerForm'
].
resetFields
()
//
this.getStat(1)
this
.
getStat
(
1
)
this
.
customerFilter
()
//
this.customerFilter()
}
}
}
}
}
}
...
@@ -378,7 +377,7 @@ export default {
...
@@ -378,7 +377,7 @@ export default {
:total=
"customerTotal"
:total=
"customerTotal"
:page
.
sync=
"customerQuery.pageNum"
:page
.
sync=
"customerQuery.pageNum"
:limit
.
sync=
"customerQuery.pageSize"
:limit
.
sync=
"customerQuery.pageSize"
@
pagination=
"customer
Filter
"
@
pagination=
"customer
Search
"
/>
/>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment