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 e267daa6
authored
Dec 11, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
26b9c021
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
31 deletions
linkwe-ui/src/api/customer/group.js
linkwe-ui/src/assets/icons/svg/qrcode.svg
linkwe-ui/src/components/SelectTag.vue
linkwe-ui/src/layout/components/Sidebar/index.vue
linkwe-ui/src/views/customerManage/group.vue
linkwe-ui/src/views/customerManage/groupDetail.vue
linkwe-ui/src/api/customer/group.js
View file @
e267daa
...
@@ -47,3 +47,26 @@ export function sync() {
...
@@ -47,3 +47,26 @@ export function sync() {
url
:
service
+
'/chat/synchWeGroup'
url
:
service
+
'/chat/synchWeGroup'
})
})
}
}
/**
* 编辑群标签
* {
"chatId": "ad cillum",
"weeGroupTagRel": [
{
"chatId": "consectetur deserunt eu in",
"id": "Ut sed ullamco non",
"tagId": "Lorem"
}
]
}
* @param {*} data
* @returns
*/
export
function
makeGroupTag
(
data
)
{
return
request
({
url
:
service
+
'/chat/makeGroupTag'
,
method
:
'post'
,
data
})
}
linkwe-ui/src/assets/icons/svg/qrcode.svg
View file @
e267daa
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1599900949665"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"6631"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M64.8 158.7V479h273.5v-68.8H133.6V158.7c0-10.2 8.3-18.5 18.5-18.5h258.4v196.1h68.8V71.4H152.1c-48.1 0-87.3 39.2-87.3 87.3zM869.8 71.4H549.2v402.5H618V140.2h251.8c10.4 0 18.8 8.5 18.8 18.8v251.2h-65.4V479h134.2V159c0.1-48.2-39.2-87.6-87.6-87.6zM66.4 863c0 48.1 39.2 87.3 87.3 87.3h322.2v-68.8H160.7c-10.2 0-18.5-8.3-18.5-18.5V616.7h268.3v203h68.8V547.9H66.4V863zM618 616.7h135.4v-68.8H549.2v201.2H618zM830.2 821.3h58.5v49.8c0 5.8-4.7 10.4-10.4 10.4h-122V688.9h-68.8v129H549.2v134.2H618v-65.4h135.3v63.6h124.9c43.7 0 79.2-35.5 79.2-79.2V752.5H830.2v68.8z"
p-id=
"6632"
></path><path
d=
"M204.1 200.4h137.6V338H204.1zM689.2 200.4h135.9v135.9H689.2zM204.1 682h137.6v137.6H204.1zM825.1 616.7h65.4v65.4h-65.4zM890.4 547.9h64.5v64.5h-64.5zM412.3 406.8h67.1v67.1h-67.1zM689.2 406.8h67.9v67.9h-67.9z"
p-id=
"6633"
></path></svg>
\ No newline at end of file
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1599900949665"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"6631"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
>
<defs>
<style
type=
"text/css"
></style>
</defs>
<path
d=
"M64.8 158.7V479h273.5v-68.8H133.6V158.7c0-10.2 8.3-18.5 18.5-18.5h258.4v196.1h68.8V71.4H152.1c-48.1 0-87.3 39.2-87.3 87.3zM869.8 71.4H549.2v402.5H618V140.2h251.8c10.4 0 18.8 8.5 18.8 18.8v251.2h-65.4V479h134.2V159c0.1-48.2-39.2-87.6-87.6-87.6zM66.4 863c0 48.1 39.2 87.3 87.3 87.3h322.2v-68.8H160.7c-10.2 0-18.5-8.3-18.5-18.5V616.7h268.3v203h68.8V547.9H66.4V863zM618 616.7h135.4v-68.8H549.2v201.2H618zM830.2 821.3h58.5v49.8c0 5.8-4.7 10.4-10.4 10.4h-122V688.9h-68.8v129H549.2v134.2H618v-65.4h135.3v63.6h124.9c43.7 0 79.2-35.5 79.2-79.2V752.5H830.2v68.8z"
p-id=
"6632"
></path>
<path
d=
"M204.1 200.4h137.6V338H204.1zM689.2 200.4h135.9v135.9H689.2zM204.1 682h137.6v137.6H204.1zM825.1 616.7h65.4v65.4h-65.4zM890.4 547.9h64.5v64.5h-64.5zM412.3 406.8h67.1v67.1h-67.1zM689.2 406.8h67.9v67.9h-67.9z"
p-id=
"6633"
></path>
</svg>
\ No newline at end of file
\ No newline at end of file
linkwe-ui/src/components/SelectTag.vue
View file @
e267daa
...
@@ -122,27 +122,43 @@ export default {
...
@@ -122,27 +122,43 @@ export default {
<span
class=
"mr20"
>
选择分组
</span>
<span
class=
"mr20"
>
选择分组
</span>
<el-select
v-model=
"selectedGroup"
placeholder=
"请选择"
>
<el-select
v-model=
"selectedGroup"
placeholder=
"请选择"
>
<el-option
label=
"所有标签"
value
></el-option>
<el-option
label=
"所有标签"
value
></el-option>
<el-option
v-for=
"(item, index) in list"
:key=
"index"
:label=
"item.gourpName"
:value=
"item.groupId"
></el-option>
<el-option
v-for=
"(item, index) in list"
:key=
"index"
:label=
"item.gourpName"
:value=
"item.groupId"
></el-option>
</el-select>
</el-select>
<slot></slot>
<slot></slot>
<div
v-if=
"Pvisible"
>
<div
v-if=
"Pvisible"
>
<el-checkbox-group
v-if=
"type !== 'remove'"
v-model=
"Pselected"
>
<el-checkbox-group
v-if=
"type !== 'remove'"
v-model=
"Pselected"
>
<template
v-for=
"(item, index) in list"
>
<template
v-for=
"(item, index) in list"
>
<div
class=
"checkbox-li"
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:key=
"index"
>
<div
class=
"checkbox-li"
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:key=
"index"
>
<div
class=
"checkbox-group-title"
>
{{
item
.
gourpName
}}
</div>
<div
class=
"checkbox-group-title"
>
{{
item
.
gourpName
}}
</div>
<template
v-for=
"(unit, unique) in item.weTags"
>
<template
v-for=
"(unit, unique) in item.weTags"
>
<el-checkbox
v-if=
"unit.name.trim()"
:label=
"unit"
:key=
"index + '' + unique"
>
{{
<el-checkbox
unit
.
name
v-if=
"unit.name.trim()"
}}
</el-checkbox>
:label=
"unit"
:key=
"index + '' + unique"
border
>
{{
unit
.
name
}}
</el-checkbox
>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
</el-checkbox-group>
</el-checkbox-group>
<el-checkbox-group
class=
"mt20"
v-else
v-model=
"Pselected"
>
<el-checkbox-group
class=
"mt20"
v-else
v-model=
"Pselected"
>
<
template
v-for=
"(item, index) in removeTag"
>
<
template
v-for=
"(item, index) in removeTag"
>
<el-checkbox
v-if=
"item.groupId === selectedGroup || !selectedGroup"
:label=
"item"
:key=
"index"
>
{{
<el-checkbox
item
.
name
.
trim
()
||
'(空的无效标签,请移除)'
v-if=
"item.groupId === selectedGroup || !selectedGroup"
}}
</el-checkbox>
:label=
"item"
:key=
"index"
>
{{
item
.
name
.
trim
()
||
'(空的无效标签,请移除)'
}}
</el-checkbox
>
</
template
>
</
template
>
</el-checkbox-group>
</el-checkbox-group>
</div>
</div>
...
...
linkwe-ui/src/layout/components/Sidebar/index.vue
View file @
e267daa
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
},
},
isCollapse
()
{
isCollapse
()
{
return
!
this
.
sidebar
.
opened
return
!
this
.
sidebar
.
opened
}
,
}
}
,
}
}
}
</
script
>
</
script
>
linkwe-ui/src/views/customerManage/group.vue
View file @
e267daa
...
@@ -85,8 +85,7 @@ export default {
...
@@ -85,8 +85,7 @@ export default {
// this.$refs.selectTag.$forceUpdate()
// this.$refs.selectTag.$forceUpdate()
},
},
makeTag
(
data
)
{
makeTag
(
data
)
{
debugger
this
.
makeLabelCustomerList
=
data
||
this
.
ids
this
.
makeLabelCustomerList
=
data
?
[
data
]
:
this
.
ids
this
.
tagDialogType
.
type
=
''
this
.
tagDialogType
.
type
=
''
let
curTags
=
[]
let
curTags
=
[]
if
(
data
.
tags
&&
data
.
tagIds
)
{
if
(
data
.
tags
&&
data
.
tagIds
)
{
...
@@ -107,8 +106,11 @@ export default {
...
@@ -107,8 +106,11 @@ export default {
}
else
{
}
else
{
this
.
loading
=
true
this
.
loading
=
true
let
data
=
{
let
data
=
{
chatId
:
this
.
makeLabelCustomerList
[
0
].
chatId
,
chatId
:
this
.
makeLabelCustomerList
.
chatId
,
weeGroupTagRel
:
selected
weeGroupTagRel
:
selected
.
map
((
row
)
=>
({
chatId
:
this
.
makeLabelCustomerList
.
chatId
,
tagId
:
row
.
tagId
}))
}
}
api
api
.
makeGroupTag
(
data
)
.
makeGroupTag
(
data
)
...
...
linkwe-ui/src/views/customerManage/groupDetail.vue
View file @
e267daa
<
script
>
<
script
>
import
{
dictJoinGroupType
}
from
'@/utils/dictionary'
import
{
dictJoinGroupType
}
from
'@/utils/dictionary'
import
*
as
api
from
'@/api/customer/group'
import
*
as
api
from
'@/api/customer/group'
import
SelectTag
from
'@/components/SelectTag'
export
default
{
export
default
{
// name: 'GroupDetail',
// name: 'GroupDetail',
components
:
{
SelectTag
},
data
()
{
data
()
{
return
{
return
{
// 遮罩层
// 遮罩层
...
@@ -27,7 +29,8 @@ export default {
...
@@ -27,7 +29,8 @@ export default {
},
},
dictJoinGroupType
,
dictJoinGroupType
,
dialogVisible
:
false
,
dialogVisible
:
false
,
selectedTag
:
[]
selectedTag
:
[],
tagDialogType
:
{}
}
}
},
},
created
()
{
created
()
{
...
@@ -66,8 +69,8 @@ export default {
...
@@ -66,8 +69,8 @@ export default {
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
operId
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
operId
)
this
.
multiple
=
!
selection
.
length
this
.
multiple
=
!
selection
.
length
},
},
makeTag
(
data
)
{
makeTag
()
{
this
.
makeLabelCustomerList
=
data
?
[
data
]
:
this
.
ids
let
data
=
this
.
group
this
.
tagDialogType
.
type
=
''
this
.
tagDialogType
.
type
=
''
let
curTags
=
[]
let
curTags
=
[]
if
(
data
.
tags
&&
data
.
tagIds
)
{
if
(
data
.
tags
&&
data
.
tagIds
)
{
...
@@ -81,24 +84,33 @@ export default {
...
@@ -81,24 +84,33 @@ export default {
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
submitSelectTag
(
data
)
{
submitSelectTag
(
data
)
{
this
.
loading
=
true
api
api
.
makeGroupTag
(
this
,
{
.
makeGroupTag
(
this
,
{
chatId
:
this
.
query
.
chatId
,
chatId
:
this
.
query
.
chatId
,
weeGroupTagRel
:
data
weeGroupTagRel
:
data
.
map
((
row
)
=>
({
chatId
:
this
.
query
.
chatId
,
tagId
:
row
.
tagId
}))
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
getGroupDetail
()
this
.
loading
=
false
// this.getGroupDetail()
this
.
msgSuccess
(
'操作成功'
)
this
.
msgSuccess
(
'操作成功'
)
}
}
})
})
.
finally
(()
=>
{
this
.
loading
=
false
this
.
dialogVisible
=
false
})
}
}
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"
"
>
<div
v-loading=
"loading
"
>
<!--
<el-button
slot=
"append"
circle
icon=
"el-icon-back"
@
click=
"$router.back()"
></el-button>
返回 -->
<!--
<el-button
slot=
"append"
circle
icon=
"el-icon-back"
@
click=
"$router.back()"
></el-button>
返回 -->
<div
class=
"flex mt10"
>
<div
class=
"flex mt10"
>
<div
class=
"left g-card g-pad20"
>
<div
class=
"left g-card g-pad20"
>
...
@@ -114,20 +126,19 @@ export default {
...
@@ -114,20 +126,19 @@ export default {
{{
group
.
groupName
}}
{{
group
.
groupName
}}
</div>
</div>
<div
class=
"info"
><span
class=
""
>
创建时间:
</span>
{{
group
.
createTime
}}
</div>
<div
class=
"info"
><span
class=
""
>
创建时间:
</span>
{{
group
.
createTime
}}
</div>
<div
class=
"info"
>
<div
class=
"info"
style=
"flex: 1;"
>
<span
class=
""
>
客群标签:
</span>
<span
class=
""
>
客群标签:
</span>
<div
style=
"display:inline-flex;"
>
<template
v-if=
"group.tags"
>
<template
v-if=
"group.tags"
>
<el-tag
<el-tag
class=
""
v-for=
"(tag, index) in group.tags"
:key=
"index"
>
{{
style=
"margin-bottom: 10px;"
tag
v-for=
"(tag, index) in group.tags.split(',')"
}}
</el-tag>
:key=
"index"
>
{{
tag
}}
</el-tag
>
</
template
>
</
template
>
</div>
<el-button
<el-button
type=
"text"
type=
"text"
v-hasPermi=
"['customerManage/customer:makeTag']"
v-hasPermi=
"['customerManage/customer:makeTag']"
@
click=
"makeTag(
scope.row
)"
@
click=
"makeTag()"
>
编辑标签
</el-button
>
编辑标签
</el-button
>
>
</div>
</div>
...
@@ -171,7 +182,7 @@ export default {
...
@@ -171,7 +182,7 @@ export default {
</div>
</div>
<div
style=
"padding:0 20px 20px;"
>
<div
style=
"padding:0 20px 20px;"
>
{{ group.notice || '未设置' }}
{{ group.notice || '未设置' }}
<!-- 为更好的服务广大客户,我
行
将于2021年5月9日晚22:00至22:30进行系统升级维护。敬请您妥善安排业务办理时间。由此给您带来的不便,我们深表歉意,并将尽快恢复对您的服务,衷心感谢您对我行的理解和支持! -->
<!-- 为更好的服务广大客户,我
司
将于2021年5月9日晚22:00至22:30进行系统升级维护。敬请您妥善安排业务办理时间。由此给您带来的不便,我们深表歉意,并将尽快恢复对您的服务,衷心感谢您对我行的理解和支持! -->
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -181,7 +192,7 @@ export default {
...
@@ -181,7 +192,7 @@ export default {
<span>
查询
</span>
<span>
查询
</span>
</el-button>
</el-button>
</el-input>
</el-input>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
width=
"55"
/>
<el-table-column
width=
"55"
/>
<el-table-column
label=
"群成员"
prop=
"name"
>
<el-table-column
label=
"群成员"
prop=
"name"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
...
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