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 19e4ac6d
authored
Oct 16, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改群sop和关键词拉群相关问题
1 parent
a61501a1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
131 additions
and
262 deletions
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
linkwe-mobile/src/views/communityOperating/keywords/panel.vue
linkwe-mobile/src/views/portrait/index copy.vue
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/views/conversation/content/employee.vue
linkwe-mobile/src/views/communityOperating/SOP/panel.vue
View file @
19e4ac6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"task-wrapper"
>
<div
class=
"task-wrapper"
>
<div
class=
"header"
>
<div
class=
"header"
>
<span>
群SOP
</span>
<span>
群SOP
</span>
<div>
{{
task
.
createTime
}}
</div>
<div>
{{
task
.
createTime
}}
</div>
</div>
</div>
<div
class=
"group"
>
<div
class=
"group"
>
...
@@ -32,7 +32,12 @@
...
@@ -32,7 +32,12 @@
<div
class=
"image-list"
>
<div
class=
"image-list"
>
<
template
v-for=
"material of task.materialList"
>
<
template
v-for=
"material of task.materialList"
>
<!-- mediaType: 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本 5 海报 6 海报字体 -->
<!-- mediaType: 0 图片(image)、1 语音(voice)、2 视频(video),3 普通文件(file) 4 文本 5 海报 6 海报字体 -->
<van-image
v-if=
"material.mediaType === 0"
width=
"80"
:key=
"material.id"
:src=
"material.materialUrl"
></van-image>
<van-image
v-if=
"material.mediaType === 0"
width=
"80"
:key=
"material.id"
:src=
"material.materialUrl"
></van-image>
</
template
>
</
template
>
<
template
v-for=
"pic of task.picList"
>
<
template
v-for=
"pic of task.picList"
>
<van-image
width=
"80"
:key=
"pic"
:src=
"pic"
></van-image>
<van-image
width=
"80"
:key=
"pic"
:src=
"pic"
></van-image>
...
@@ -46,7 +51,7 @@
...
@@ -46,7 +51,7 @@
</div>
</div>
<div
class=
"send-button"
v-if=
"!state"
>
<div
class=
"send-button"
v-if=
"!state"
>
<van-button
type=
"info"
size=
"mini"
@
click=
"send"
>
发送
</van-button>
<van-button
type=
"info"
size=
"mini"
@
click=
"send
()
"
>
发送
</van-button>
</div>
</div>
</div>
</div>
...
@@ -79,17 +84,17 @@ export default {
...
@@ -79,17 +84,17 @@ export default {
}
}
},
},
data
()
{
data
()
{
return
{
return
{
showCopy
:
false
,
// 展示复制按钮
showCopy
:
false
,
// 展示复制按钮
touchDelay
:
750
,
// 触发显示按钮的长按时常
touchDelay
:
750
,
// 触发显示按钮的长按时常
copyEvent
:
null
,
copyEvent
:
null
,
touch
:
false
,
touch
:
false
}
}
},
},
methods
:
{
methods
:
{
goState
(
active
)
{
goState
(
active
)
{
if
(
!
this
.
isAdmin
)
return
if
(
!
this
.
isAdmin
)
return
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -97,41 +102,63 @@ export default {
...
@@ -97,41 +102,63 @@ export default {
query
:
{
query
:
{
taskId
:
this
.
task
.
ruleId
,
taskId
:
this
.
task
.
ruleId
,
active
:
active
===
1
?
1
:
0
,
active
:
active
===
1
?
1
:
0
,
taskType
:
2
,
taskType
:
2
}
}
})
})
},
},
send
()
{
send
()
{
const
userId
=
this
.
$store
.
state
.
userId
const
userId
=
this
.
$store
.
state
.
userId
const
taskId
=
this
.
task
.
ruleId
const
taskId
=
this
.
task
.
ruleId
wx
.
invoke
(
"shareToExternalChat"
,
{
let
_this
=
this
title
:
''
,
this
.
$toast
.
loading
({
desc
:
''
,
message
:
'正在发送...'
,
link
:
''
,
duration
:
0
,
imgUrl
:
''
forbidClick
:
true
},
function
(
res
)
{
if
(
res
.
err_msg
==
"shareToExternalChat:ok"
)
{
changeStatus
(
userId
,
taskId
,
1
).
then
((
res
)
=>
{
this
.
$emit
(
'refresh'
)
}).
catch
(()
=>
{
this
.
$emit
(
'refresh'
)
})
})
let
mes
=
{
title
:
this
.
task
.
title
,
desc
:
this
.
task
.
content
// link: '', // 消息链接
// imgUrl: this.task.materialUrl && this.task.materialUrl[0] ? this.task.materialUrl[0].materialUrl : ''
}
// mes.link || delete mes.link
// mes.imgUrl || delete mes.imgUrl
wx
.
invoke
(
'shareToExternalChat'
,
mes
,
async
function
(
res
)
{
if
(
res
.
err_msg
==
'shareToExternalChat:ok'
)
{
try
{
await
changeStatus
(
userId
,
taskId
,
1
)
}
catch
(
error
)
{
_this
.
$toast
.
clear
()
_this
.
$dialog
({
message
:
'接口失败:'
+
JSON
.
stringify
(
error
)
})
return
}
// .then((res) => {
// }).catch(() => {
// this.$emit('refresh')
// })
_this
.
$toast
.
clear
()
this
.
$emit
(
'refresh'
)
}
else
{
}
else
{
if
(
res
.
err_code
==
1
)
{
// 用户取消发送
}
else
{
_this
.
$dialog
({
message
:
'shareToExternalChat失败:'
+
JSON
.
stringify
(
res
)
})
}
}
}
}
)
_this
.
$toast
.
clear
()
})
},
},
touchStart
()
{
touchStart
()
{
clearTimeout
(
this
.
copyEvent
)
clearTimeout
(
this
.
copyEvent
)
this
.
copyEvent
=
setTimeout
(()
=>
{
this
.
copyEvent
=
setTimeout
(()
=>
{
this
.
touch
=
true
this
.
touch
=
true
},
this
.
touchDelay
)
},
this
.
touchDelay
)
},
},
touchEnd
()
{
touchEnd
()
{
clearTimeout
(
this
.
copyEvent
)
clearTimeout
(
this
.
copyEvent
)
if
(
this
.
touch
)
this
.
showCopy
=
true
if
(
this
.
touch
)
this
.
showCopy
=
true
this
.
touch
=
false
this
.
touch
=
false
...
@@ -139,13 +166,13 @@ export default {
...
@@ -139,13 +166,13 @@ export default {
},
},
computed
:
{
computed
:
{
sendRange
()
{
sendRange
()
{
if
(
!
this
.
task
.
startExeTime
||
!
this
.
task
.
stopExeTime
)
return
''
if
(
!
this
.
task
.
startExeTime
||
!
this
.
task
.
stopExeTime
)
return
''
return
this
.
task
.
startExeTime
+
' - '
+
this
.
task
.
stopExeTime
return
this
.
task
.
startExeTime
+
' - '
+
this
.
task
.
stopExeTime
},
},
todoMembers
()
{
todoMembers
()
{
if
(
!
(
this
.
task
&&
this
.
task
.
scopeList
&&
this
.
task
.
scopeList
.
length
>
0
))
return
[]
if
(
!
(
this
.
task
&&
this
.
task
.
scopeList
&&
this
.
task
.
scopeList
.
length
>
0
))
return
[]
const
members
=
[]
const
members
=
[]
...
@@ -156,16 +183,16 @@ export default {
...
@@ -156,16 +183,16 @@ export default {
return
members
return
members
},
},
showTodo
()
{
showTodo
()
{
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
if
(
this
.
todoMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
todoMembers
.
map
(
m
=>
m
.
name
)
const
names
=
this
.
todoMembers
.
map
(
(
m
)
=>
m
.
name
)
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
+
'人'
},
},
doneMembers
()
{
doneMembers
()
{
if
(
!
this
.
task
||
!
this
.
task
.
scopeList
||
this
.
task
.
scopeList
.
length
===
0
)
return
[]
if
(
!
this
.
task
||
!
this
.
task
.
scopeList
||
this
.
task
.
scopeList
.
length
===
0
)
return
[]
const
members
=
[]
const
members
=
[]
...
@@ -176,14 +203,14 @@ export default {
...
@@ -176,14 +203,14 @@ export default {
return
members
return
members
},
},
showDone
()
{
showDone
()
{
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
if
(
this
.
doneMembers
.
length
===
0
)
return
'无'
const
names
=
this
.
doneMembers
.
map
(
m
=>
m
.
name
)
const
names
=
this
.
doneMembers
.
map
(
(
m
)
=>
m
.
name
)
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
+
'人'
}
,
}
},
},
mounted
()
{
mounted
()
{
...
@@ -196,13 +223,12 @@ export default {
...
@@ -196,13 +223,12 @@ export default {
this
.
clipboard
.
on
(
'error'
,
(
e
)
=>
{
this
.
clipboard
.
on
(
'error'
,
(
e
)
=>
{
this
.
showCopy
=
false
this
.
showCopy
=
false
})
})
}
,
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.task-wrapper
{
.task-wrapper
{
padding
:
10px
8px
;
padding
:
10px
8px
;
.header
{
.header
{
...
@@ -219,7 +245,7 @@ export default {
...
@@ -219,7 +245,7 @@ export default {
.group
{
.group
{
.group-tags
{
.group-tags
{
:nth-child(n+
2)
{
:nth-child(n
+
2)
{
margin-left
:
5px
;
margin-left
:
5px
;
}
}
...
@@ -276,10 +302,10 @@ export default {
...
@@ -276,10 +302,10 @@ export default {
font-size
:
12px
;
font-size
:
12px
;
}
}
}
}
}
}
.bottom-line
{
.bottom-line
{
background-color
:
#f2f2f2
;
background-color
:
#f2f2f2
;
height
:
15px
;
height
:
15px
;
}
}
</
style
>
</
style
>
linkwe-mobile/src/views/communityOperating/keywords/panel.vue
View file @
19e4ac6
...
@@ -16,10 +16,7 @@
...
@@ -16,10 +16,7 @@
{{ task.welcomeMsg }}
{{ task.welcomeMsg }}
</div>
</div>
<div
class=
"copy-wrapper"
v-show=
"showCopy"
>
<div
class=
"copy-wrapper"
v-show=
"showCopy"
>
<van-button
<van-button
:class=
"'copy-btn_' + task.taskId"
:data-clipboard-text=
"task.welcomeMsg"
>
:class=
"'copy-btn_' + task.taskId"
:data-clipboard-text=
"task.welcomeMsg"
>
复制
复制
</van-button>
</van-button>
</div>
</div>
...
@@ -67,21 +64,33 @@ export default {
...
@@ -67,21 +64,33 @@ export default {
},
},
methods
:
{
methods
:
{
send
()
{
send
()
{
let
_this
=
this
this
.
$toast
.
loading
({
message
:
'正在发送...'
,
duration
:
0
,
forbidClick
:
true
})
wx
.
invoke
(
wx
.
invoke
(
'sendChatMessage'
,
'sendChatMessage'
,
{
{
msgtype
:
'news'
,
msgtype
:
'news'
,
news
:
{
news
:
{
link
:
this
.
groupCodeUrl
,
link
:
this
.
groupCodeUrl
,
title
:
'客户群活码'
,
title
:
this
.
task
.
taskName
,
desc
:
'客户群活码'
,
desc
:
this
.
task
.
welcomeMsg
,
imgUrl
:
this
.
imgUrl
imgUrl
:
this
.
imgUrl
}
}
},
},
function
(
res
)
{
function
(
res
)
{
if
(
res
.
err_msg
==
'sendChatMessage:ok'
)
{
if
(
res
.
err_msg
==
'sendChatMessage:ok'
)
{
}
else
{
}
else
{
if
(
res
.
err_code
==
1
)
{
// 用户取消发送
}
else
{
_this
.
$dialog
({
message
:
'sendChatMessage失败:'
+
JSON
.
stringify
(
res
)
})
}
}
}
_this
.
$toast
.
clear
()
}
}
)
)
},
},
...
@@ -105,26 +114,18 @@ export default {
...
@@ -105,26 +114,18 @@ export default {
return
keywords
return
keywords
},
},
groupCodeUrl
()
{
groupCodeUrl
()
{
let
groupCodeInfo
=
this
.
task
.
groupCodeInfo
if
(
window
.
location
.
hash
[
0
]
===
'#'
)
{
if
(
window
.
location
.
hash
[
0
]
===
'#'
)
{
return
(
return
(
window
.
location
.
origin
+
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
window
.
location
.
pathname
+
'#/groupCode?id='
+
this
.
task
.
groupCodeInfo
.
id
)
)
}
}
return
(
return
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
window
.
location
.
origin
+
window
.
location
.
pathname
+
'groupCode?id='
+
this
.
task
.
groupCodeInfo
.
id
)
},
},
imgUrl
()
{
imgUrl
()
{
if
(
this
.
task
.
groupCodeInfo
&&
this
.
task
.
groupCodeInfo
.
codeUrl
)
let
groupCodeInfo
=
this
.
task
.
groupCodeInfo
return
this
.
task
.
groupCodeInfo
.
codeUrl
return
groupCodeInfo
&&
groupCodeInfo
.
codeUrl
?
groupCodeInfo
.
codeUrl
:
''
return
''
}
}
},
},
mounted
()
{
mounted
()
{
...
...
linkwe-mobile/src/views/portrait/index copy.vue
0 → 100644
View file @
19e4ac6
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
View file @
19e4ac6
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/communityOperating/groupSOP/list.vue
View file @
19e4ac6
...
@@ -114,9 +114,10 @@ export default {
...
@@ -114,9 +114,10 @@ export default {
},
},
// 获取显示用实际群聊
// 获取显示用实际群聊
getDisplayGroups
(
row
)
{
getDisplayGroups
(
row
)
{
if
(
row
.
groupList
)
{
const
groups
=
row
.
groupList
.
map
((
g
)
=>
g
.
groupName
)
const
groups
=
row
.
groupList
.
map
((
g
)
=>
g
.
groupName
)
return
groups
.
join
(
','
)
return
groups
.
join
(
' '
)
}
}
}
}
}
}
}
...
@@ -125,13 +126,7 @@ export default {
...
@@ -125,13 +126,7 @@ export default {
<
template
>
<
template
>
<div>
<div>
<div
class=
"top-search"
>
<div
class=
"top-search"
>
<el-form
<el-form
inline
label-position=
"right"
:model=
"query"
label-width=
"100px"
ref=
"queryForm"
>
inline
label-position=
"right"
:model=
"query"
label-width=
"100px"
ref=
"queryForm"
>
<el-form-item
label=
"规则名称"
prop=
"ruleName"
>
<el-form-item
label=
"规则名称"
prop=
"ruleName"
>
<el-input
v-model=
"query.ruleName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.ruleName"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -151,16 +146,8 @@ export default {
...
@@ -151,16 +146,8 @@ export default {
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
v-hasPermi=
"['customerManage:customer:query']"
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
>
重置
</el-button
>
重置
</el-button
>
>
</el-form-item>
</el-form-item>
...
@@ -182,30 +169,12 @@ export default {
...
@@ -182,30 +169,12 @@ export default {
</div>
</div>
</div>
</div>
<el-table
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
v-loading=
"loading"
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
></el-table-column>
:data=
"list"
<el-table-column
label=
"规则名称"
align=
"center"
prop=
"ruleName"
:show-overflow-tooltip=
"true"
></el-table-column>
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
></el-table-column>
<el-table-column
label=
"规则名称"
align=
"center"
prop=
"ruleName"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
label=
"执行群聊"
align=
"center"
width=
"120"
>
<el-table-column
label=
"执行群聊"
align=
"center"
width=
"120"
>
<template
#
default=
"
{ row }">
<template
#
default=
"
{ row }">
<el-popover
<el-popover
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"getDisplayGroups(row)"
>
placement=
"bottom"
width=
"200"
trigger=
"hover"
:content=
"getDisplayGroups(row)"
>
<div
slot=
"reference"
class=
"table-desc overflow-ellipsis"
>
<div
slot=
"reference"
class=
"table-desc overflow-ellipsis"
>
{{
getDisplayGroups
(
row
)
}}
{{
getDisplayGroups
(
row
)
}}
</div>
</div>
...
@@ -213,28 +182,12 @@ export default {
...
@@ -213,28 +182,12 @@ export default {
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
></el-table-column>
label=
"创建人"
align=
"center"
prop=
"createBy"
></el-table-column>
<el-table-column
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
></el-table-column>
label=
"创建人"
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
></el-table-column>
align=
"center"
prop=
"createBy"
></el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
></el-table-column>
<el-table-column
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
v-hasPermi=
"['enterpriseWechat:view']"
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
19e4ac6
<
script
>
<
script
>
import
{
import
{
getList
,
remove
,
download
,
downloadBatch
}
from
'@/api/communityOperating/newCustomer'
getList
,
remove
,
download
,
downloadBatch
}
from
'@/api/communityOperating/newCustomer'
export
default
{
export
default
{
components
:
{},
components
:
{},
...
@@ -157,14 +152,7 @@ export default {
...
@@ -157,14 +152,7 @@ export default {
<
template
>
<
template
>
<div>
<div>
<el-form
<el-form
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
size=
"small"
>
ref=
"queryForm"
:inline=
"true"
:model=
"query"
label-width=
"100px"
class=
"top-search"
size=
"small"
>
<el-form-item
label=
"活码名称"
prop=
"emplCodeName"
>
<el-form-item
label=
"活码名称"
prop=
"emplCodeName"
>
<el-input
v-model=
"query.emplCodeName"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"query.emplCodeName"
placeholder=
"请输入"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -184,18 +172,8 @@ export default {
...
@@ -184,18 +172,8 @@ export default {
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
" "
>
<el-form-item
label=
" "
>
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
v-hasPermi=
"['customerManage:customer:query']"
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
>
重置
</el-button>
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:query']"
type=
"success"
@
click=
"resetQuery()"
>
重置
</el-button
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -204,50 +182,20 @@ export default {
...
@@ -204,50 +182,20 @@ export default {
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建自动拉群
</el-button>
<el-button
type=
"primary"
@
click=
"goRoute()"
>
新建自动拉群
</el-button>
</div>
</div>
<div>
<div>
<el-button
<el-button
type=
"primary"
:disabled=
"!ids.length"
@
click=
"downloadBatch()"
>
批量下载
</el-button>
type=
"primary"
<el-button
v-hasPermi=
"['customerManage:customer:export']"
:disabled=
"!ids.length"
type=
"cyan"
@
click=
"remove()"
:disabled=
"!ids.length"
@
click=
"downloadBatch()"
>
批量下载
</el-button
>
<el-button
v-hasPermi=
"['customerManage:customer:export']"
:disabled=
"!ids.length"
type=
"cyan"
@
click=
"remove()"
>
批量删除
</el-button
>
批量删除
</el-button
>
>
</div>
</div>
</div>
</div>
<el-table
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
v-loading=
"loading"
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
></el-table-column>
:data=
"list"
<el-table-column
prop=
"codeName"
label=
"活码名称"
align=
"center"
></el-table-column>
@
selection-change=
"handleSelectionChange"
<el-table-column
prop=
"emplList"
label=
"使用员工"
align=
"center"
width=
"130"
>
>
<el-table-column
type=
"selection"
width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"codeName"
label=
"活码名称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"emplList"
label=
"使用员工"
align=
"center"
width=
"130"
>
<template
#
default=
"
{ row }">
<template
#
default=
"
{ row }">
<el-popover
placement=
"bottom"
trigger=
"hover"
>
<el-popover
placement=
"bottom"
trigger=
"hover"
>
<el-image
<el-image
slot=
"reference"
:src=
"row.emplCodeUrl"
class=
"code-image--small"
></el-image>
slot=
"reference"
:src=
"row.emplCodeUrl"
class=
"code-image--small"
></el-image>
<el-image
:src=
"row.emplCodeUrl"
class=
"code-image"
></el-image>
<el-image
:src=
"row.emplCodeUrl"
class=
"code-image"
></el-image>
</el-popover>
</el-popover>
</
template
>
</
template
>
...
@@ -256,93 +204,35 @@ export default {
...
@@ -256,93 +204,35 @@ export default {
</el-image>
</el-image>
</template> -->
</template> -->
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"emplList"
label=
"使用员工"
align=
"center"
:show-overflow-tooltip=
"true"
>
prop=
"emplList"
label=
"使用员工"
align=
"center"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-tag
<el-tag
size=
"medium"
type=
"info"
v-for=
"(item, index) in row.emplList"
:key=
"index"
>
{{
size=
"medium"
item
.
businessName
type=
"info"
}}
</el-tag>
v-for=
"(item, index) in row.emplList"
:key=
"index"
>
{{
item
.
businessName
}}
</el-tag
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"客户标签"
align=
"center"
width=
"160"
:show-overflow-tooltip=
"true"
>
label=
"客户标签"
align=
"center"
width=
"160"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-tag
<el-tag
size=
"medium"
type=
"info"
v-for=
"(item, index) in row.tagList"
:key=
"index"
>
{{
size=
"medium"
item
.
tagName
type=
"info"
}}
</el-tag>
v-for=
"(item, index) in row.tagList"
:key=
"index"
>
{{
item
.
tagName
}}
</el-tag
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"实际群聊"
align=
"center"
:show-overflow-tooltip=
"true"
>
label=
"实际群聊"
align=
"center"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-tag
<el-tag
size=
"medium"
v-for=
"(item, index) in (row.actualGroupName || '').split(',')"
:key=
"index"
>
{{
size=
"medium"
item
v-for=
"(item, index) in row.groupList"
}}
</el-tag>
:key=
"index"
>
{{
item
.
groupName
}}
</el-tag
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"添加好友数"
align=
"center"
prop=
"cusNumber"
></el-table-column>
label=
"添加好友数"
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
></el-table-column>
align=
"center"
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"160"
></el-table-column>
prop=
"cusNumber"
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
></el-table-column>
<el-table-column
label=
"创建人"
align=
"center"
prop=
"createBy"
></el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"160"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-button
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
type=
"text"
@
click=
"goRoute(row.id)"
>
编辑
</el-button>
v-hasPermi=
"['enterpriseWechat:edit']"
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
type=
"text"
@
click=
"download(row)"
>
下载
</el-button>
type=
"text"
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
type=
"text"
@
click=
"remove(row.id)"
>
删除
</el-button>
@
click=
"goRoute(row.id)"
>
编辑
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:view']"
type=
"text"
@
click=
"download(row)"
>
下载
</el-button
>
<el-button
v-hasPermi=
"['enterpriseWechat:edit']"
type=
"text"
@
click=
"remove(row.id)"
>
删除
</el-button
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
linkwe-ui/src/views/conversation/content/employee.vue
View file @
19e4ac6
...
@@ -205,7 +205,6 @@ export default {
...
@@ -205,7 +205,6 @@ export default {
}
}
},
},
handleNodeClick
(
data
,
add
)
{
handleNodeClick
(
data
,
add
)
{
debugger
if
(
!
data
.
userId
)
{
if
(
!
data
.
userId
)
{
}
else
{
}
else
{
this
.
talkName
=
data
.
name
this
.
talkName
=
data
.
name
...
...
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