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 4b4fb52c
authored
Nov 24, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/front_end_1.5'
2 parents
725ad749
9f2ad787
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
96 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-taskMobile/src/js/taskProcess.js
linkwe-ui/src/api/communityOperating/oldCustomer.js
linkwe-ui/src/api/drainageCode/staff.js
linkwe-ui/src/views/communityOperating/keywords/list.vue
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
linkwe-ui/src/views/drainageCode/staff/detail.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
4b4fb52
...
@@ -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-taskMobile/src/js/taskProcess.js
View file @
4b4fb52
...
@@ -36,7 +36,7 @@ $(function () {
...
@@ -36,7 +36,7 @@ $(function () {
item
.
avatar
+
item
.
avatar
+
" class='customersImg'/>"
+
" class='customersImg'/>"
+
"<span class=''>"
+
"<span class=''>"
+
item
.
create
Time
+
item
.
firstAdd
Time
+
'</span>'
+
'</span>'
+
"<span class='customersSuccess'>邀请成功</span>"
+
"<span class='customersSuccess'>邀请成功</span>"
+
'</div>'
'</div>'
...
...
linkwe-ui/src/api/communityOperating/oldCustomer.js
View file @
4b4fb52
...
@@ -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/api/drainageCode/staff.js
View file @
4b4fb52
...
@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code'
...
@@ -18,7 +18,7 @@ const service = window.CONFIG.services.wecom + '/code'
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/list'
,
url
:
service
+
'/list'
,
params
,
params
})
})
}
}
...
@@ -28,7 +28,7 @@ export function getList(params) {
...
@@ -28,7 +28,7 @@ export function getList(params) {
*/
*/
export
function
getDetail
(
id
)
{
export
function
getDetail
(
id
)
{
return
request
({
return
request
({
url
:
service
+
'/'
+
id
,
url
:
service
+
'/'
+
id
})
})
}
}
...
@@ -59,7 +59,7 @@ export function update(data) {
...
@@ -59,7 +59,7 @@ export function update(data) {
return
request
({
return
request
({
url
:
service
+
'/update'
,
url
:
service
+
'/update'
,
method
:
'put'
,
method
:
'put'
,
data
,
data
})
})
}
}
...
@@ -87,7 +87,7 @@ export function add(data) {
...
@@ -87,7 +87,7 @@ export function add(data) {
return
request
({
return
request
({
url
:
service
+
'/add'
,
url
:
service
+
'/add'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
})
}
}
...
@@ -99,7 +99,7 @@ export function batchAdd(data) {
...
@@ -99,7 +99,7 @@ export function batchAdd(data) {
return
request
({
return
request
({
url
:
service
+
'/batchAdd'
,
url
:
service
+
'/batchAdd'
,
method
:
'post'
,
method
:
'post'
,
data
,
data
})
})
}
}
...
@@ -110,7 +110,7 @@ export function batchAdd(data) {
...
@@ -110,7 +110,7 @@ export function batchAdd(data) {
export
function
remove
(
id
)
{
export
function
remove
(
id
)
{
return
request
({
return
request
({
url
:
service
+
'/delete/'
+
id
,
url
:
service
+
'/delete/'
+
id
,
method
:
'delete'
,
method
:
'delete'
})
})
}
}
...
@@ -125,7 +125,7 @@ export function remove(id) {
...
@@ -125,7 +125,7 @@ export function remove(id) {
export
function
getQrcode
(
params
)
{
export
function
getQrcode
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/getQrcode'
,
url
:
service
+
'/getQrcode'
,
params
,
params
})
})
}
}
...
@@ -137,7 +137,7 @@ export function downloadBatch(ids) {
...
@@ -137,7 +137,7 @@ export function downloadBatch(ids) {
return
request
({
return
request
({
url
:
service
+
'/downloadBatch'
,
url
:
service
+
'/downloadBatch'
,
params
:
{
params
:
{
ids
,
ids
},
},
responseType
:
'blob'
responseType
:
'blob'
})
})
...
@@ -147,7 +147,7 @@ export function download(id) {
...
@@ -147,7 +147,7 @@ export function download(id) {
return
request
({
return
request
({
url
:
service
+
'/download'
,
url
:
service
+
'/download'
,
params
:
{
params
:
{
id
,
id
},
},
responseType
:
'blob'
responseType
:
'blob'
})
})
...
@@ -156,11 +156,11 @@ export function download(id) {
...
@@ -156,11 +156,11 @@ export function download(id) {
/**
/**
* 成员添加客户统计
* 成员添加客户统计
* @param {*} params
* @param {*} params
*
userId=成员id&addWay=添加类型,二维码:1
&beginTime=开始时间&endTime=结束时间
*
codeId=活码id
&beginTime=开始时间&endTime=结束时间
*/
*/
export
function
getUserAddCustomerStat
(
params
)
{
export
function
getUserAddCustomerStat
(
params
)
{
return
request
({
return
request
({
url
:
service
+
'/getUserAddCustomerStat'
,
url
:
service
+
'/getUserAddCustomerStat'
,
params
,
params
})
})
}
}
linkwe-ui/src/views/communityOperating/keywords/list.vue
View file @
4b4fb52
...
@@ -161,31 +161,6 @@ export default {
...
@@ -161,31 +161,6 @@ export default {
<
template
>
<
template
>
<div>
<div>
<div
class=
"link-info"
>
<div
class=
"link-info__header"
>
配置链接
</div>
<div
class=
"link-info__content"
>
请点击按钮复制该应用链接,并将应用页面配置到聊天工具栏,方便成员在与客户的聊天中查看和使用,提高服务效率
</div>
<div
class=
"link"
>
<div
class=
"link__content"
>
<span>
{{
h5Link
}}
</span>
</div>
<div
class=
"link__action"
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
plain
class=
"copy-btn"
:data-clipboard-text=
"h5Link"
>
复制地址
</el-button
>
<el-link
type=
"info"
@
click=
"openHelpDialog"
>
如何配置?
</el-link>
</div>
</div>
</div>
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
size=
"small"
>
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
size=
"small"
>
<el-form-item
label=
"活码名称"
prop=
"taskName"
>
<el-form-item
label=
"活码名称"
prop=
"taskName"
>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.taskName"
placeholder=
"请输入"
></el-input>
...
@@ -330,41 +305,6 @@ export default {
...
@@ -330,41 +305,6 @@ export default {
</template>
</template>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.link-info
{
.link-info__header
{
padding-bottom
:
10px
;
font-size
:
16px
;
}
.link-info__content
{
color
:
#aaaaaa
;
padding
:
5px
0
;
}
.link
{
display
:
flex
;
align-items
:
center
;
flex-wrap
:
wrap
;
margin-bottom
:
14px
;
.link__content
{
background
:
#e0e0e0
;
margin
:
8px
10px
8px
0
;
border-radius
:
4px
;
line-height
:
32px
;
padding
:
0
12px
;
span
{
align-items
:
center
;
height
:
100%
;
color
:
#aaaaaa
;
}
}
.link__action
{
:nth-child(n
+
2)
{
margin-left
:
10px
;
}
}
}
}
.help
{
.help
{
.step
{
.step
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
...
linkwe-ui/src/views/communityOperating/oldCustomer/list.vue
View file @
4b4fb52
...
@@ -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>
...
...
linkwe-ui/src/views/drainageCode/staff/detail.vue
View file @
4b4fb52
...
@@ -20,8 +20,8 @@ export default {
...
@@ -20,8 +20,8 @@ export default {
form
:
{},
form
:
{},
// 查询参数
// 查询参数
query
:
{
query
:
{
user
Id
:
undefined
,
code
Id
:
undefined
,
addWay
:
undefined
,
//
addWay: undefined,
beginTime
:
undefined
,
beginTime
:
undefined
,
endTime
:
undefined
endTime
:
undefined
},
},
...
@@ -30,9 +30,12 @@ export default {
...
@@ -30,9 +30,12 @@ export default {
}
}
},
},
created
()
{
created
()
{
let
id
=
this
.
$route
.
query
.
id
let
id
=
(
this
.
query
.
codeId
=
this
.
$route
.
query
.
id
)
id
&&
this
.
getDetail
(
id
)
if
(
id
)
{
// this.getList()
this
.
getDetail
(
id
)
this
.
setTime
(
7
)
this
.
getList
()
}
},
},
mounted
()
{
mounted
()
{
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn'
)
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn'
)
...
@@ -57,11 +60,8 @@ export default {
...
@@ -57,11 +60,8 @@ export default {
getDetail
(
id
).
then
(({
data
})
=>
{
getDetail
(
id
).
then
(({
data
})
=>
{
this
.
form
=
data
this
.
form
=
data
this
.
loading
=
false
this
.
loading
=
false
this
.
query
.
userId
=
data
.
weEmpleCodeUseScops
[
0
].
businessId
// this.query.userId = data.weEmpleCodeUseScops[0].businessId
this
.
query
.
addWay
=
1
// this.query.addWay = 1
this
.
setTime
(
7
)
this
.
getList
()
})
})
},
},
/** */
/** */
...
...
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