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 4bda8c7e
authored
Dec 26, 2021
by
test
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群发详情字段调整
1 parent
e87c3672
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
23 deletions
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/detail.vue
View file @
4bda8c7
...
...
@@ -8,14 +8,14 @@
群发统计
</div>
<div
class=
"operation"
>
<span
v-if=
"data.refreshTime"
>
最近同步时间:
{{
data
.
refreshTime
}}
</span>
<span
v-if=
"data.refreshTime"
>
最近同步时间:
{{
data
.
refreshTime
}}
</span>
<el-button
style=
"margin-left:20px;"
type=
"primary"
size=
"mini"
@
click=
"setFn"
>
同步
</el-button>
</div>
</div>
<div
class=
"total_list"
>
<div
class=
"item"
>
<div>
已发送
员工
已发送
{{
data
.
chatType
===
1
?
'员工'
:
'群主'
}}
</div>
<div
style=
"font-size:18px;color: #000;"
>
{{
data
.
alreadySendNum
?
data
.
alreadySendNum
:
0
}}
...
...
@@ -23,7 +23,7 @@
</div>
<div
class=
"item"
>
<div>
未发送
员工
未发送
{{
data
.
chatType
===
1
?
'员工'
:
'群主'
}}
</div>
<div
style=
"font-size:18px;color: #000;"
>
{{
data
.
toBeSendNum
?
data
.
toBeSendNum
:
0
}}
...
...
@@ -31,7 +31,7 @@
</div>
<div
class=
"item"
>
<div>
已送达
客户
已送达
{{
data
.
chatType
===
1
?
'客户'
:
'客户群'
}}
</div>
<div
style=
"font-size:18px;color: #000;"
>
{{
data
.
alreadySendCustomerNum
?
data
.
alreadySendCustomerNum
:
0
}}
...
...
@@ -39,7 +39,7 @@
</div>
<div
class=
"item"
>
<div>
未送达
客户
未送达
{{
data
.
chatType
===
1
?
'客户'
:
'客户群'
}}
</div>
<div
style=
"font-size:18px;color: #000;"
>
{{
data
.
toBeSendCustomerNum
?
data
.
toBeSendCustomerNum
:
0
}}
...
...
@@ -50,13 +50,13 @@
<div
class=
"g-card g-pad20"
>
<div
class=
"title"
>
<div
class=
"name"
>
员工
详情
{{
data
.
chatType
===
1
?
'员工'
:
'群主'
}}
详情
</div>
</div>
<div
class=
"search"
>
<el-form
:model=
"queryMember"
ref=
"queryMemberForm"
:inline=
"true"
label-position=
"left"
class=
"top-search"
label-width=
"70px"
>
<el-form-item
label=
"发送员工
"
prop=
"userName"
>
<el-input
size=
"mini"
v-model=
"queryMember.userName"
style=
"width:150px;"
placeholder=
"请输入
发送员工
"
/>
<el-form-item
:label=
"data.chatType === 1 ? '发送员工':'发送群主'
"
prop=
"userName"
>
<el-input
size=
"mini"
v-model=
"queryMember.userName"
style=
"width:150px;"
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"发送状态"
prop=
"status"
>
<el-select
v-model=
"queryMember.status"
placeholder=
"请选择发送状态"
size=
"mini"
>
...
...
@@ -73,15 +73,15 @@
</div>
<div>
<el-table
v-loading=
"member.loading"
:data=
"member.list"
>
<el-table-column
label=
"发送员工
"
align=
"center"
prop=
"userName"
/>
<el-table-column
label=
"预计发送客户
"
align=
"center"
prop=
"total"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
to
tal
?
scope
.
row
.
total
:
0
}}
<el-table-column
:label=
"data.chatType === 1 ? '发送员工':'发送群主'
"
align=
"center"
prop=
"userName"
/>
<el-table-column
:label=
"data.chatType === 1 ? '预计发送客户':'预计发送客户群'
"
align=
"center"
prop=
"total"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
to
BeCustomerName
?
scope
.
row
.
toBeCustomerName
:
0
}}
</
template
>
</el-table-column>
<el-table-column
label=
"实际发送客户"
align=
"center"
prop=
"already"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
already
?
scope
.
row
.
already
:
0
}}
<el-table-column
:label=
"data.chatType === 1 ? '实际发送客户':'实际发送客户群'"
align=
"center"
prop=
"already"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
already
CustomerName
?
scope
.
row
.
alreadyCustomerName
:
0
}}
</
template
>
</el-table-column>
<el-table-column
label=
"发送状态"
align=
"center"
prop=
"status"
>
...
...
@@ -96,13 +96,13 @@
<div
class=
"g-card g-pad20"
>
<div
class=
"title"
>
<div
class=
"name"
>
客户
详情
{{data.chatType === 1 ? '客户':'客户群'}}
详情
</div>
</div>
<div
class=
"search"
>
<el-form
:model=
"queryCustomer"
ref=
"queryForm"
:inline=
"true"
label-position=
"left"
class=
"top-search"
label-width=
"
7
0px"
>
<el-form-item
label=
"发送客户
"
prop=
"customerName"
>
<el-input
size=
"mini"
v-model=
"queryCustomer.customerName"
style=
"width:150px;"
placeholder=
"请输入
发送客户
"
/>
<el-form
:model=
"queryCustomer"
ref=
"queryForm"
:inline=
"true"
label-position=
"left"
class=
"top-search"
label-width=
"
9
0px"
>
<el-form-item
:label=
"data.chatType === 1 ? '发送客户':'发送客户群'
"
prop=
"customerName"
>
<el-input
size=
"mini"
v-model=
"queryCustomer.customerName"
style=
"width:150px;"
placeholder=
"请输入"
/>
</el-form-item>
<el-form-item
label=
"发送状态"
prop=
"status"
>
<el-select
v-model=
"queryCustomer.status"
placeholder=
"请选择发送状态"
size=
"mini"
>
...
...
@@ -119,8 +119,8 @@
</div>
<div>
<el-table
v-loading=
"customer.loading"
:data=
"customer.list"
>
<el-table-column
label=
"客户
"
align=
"center"
prop=
"customerName"
/>
<el-table-column
label=
"所属员工
"
align=
"center"
prop=
"userName"
/>
<el-table-column
:label=
"data.chatType === 1 ? '客户':'客户群'
"
align=
"center"
prop=
"customerName"
/>
<el-table-column
:label=
"data.chatType === 1 ? '所属员工':'所属群主'
"
align=
"center"
prop=
"userName"
/>
<el-table-column
label=
"送达时间"
align=
"center"
prop=
"sendTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"送达状态"
align=
"center"
prop=
"status"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -193,6 +193,7 @@
materialMsgList
:
[],
},
data
:
{
chatType
:
1
,
alreadySendCustomerNum
:
0
,
alreadySendNum
:
0
,
toBeSendCustomerNum
:
0
,
...
...
@@ -273,12 +274,46 @@
this
.
queryMember
.
pageNum
=
e
.
page
this
.
getMemberList
()
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
(
dd
=>
{
if
(
dd
.
msgType
===
'image'
)
{
let
obj
=
{
msgType
:
'0'
,
materialUrl
:
dd
.
picUrl
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
msgType
===
'link'
)
{
let
ob
=
{
msgType
:
'7'
,
materialName
:
dd
.
title
,
content
:
dd
.
linkUrl
}
arr
.
push
(
ob
)
}
else
if
(
dd
.
msgType
===
'miniprogram'
)
{
let
ff
=
{
msgType
:
'8'
,
materialUrl
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
linkUrl
}
arr
.
push
(
ff
)
}
})
}
return
arr
},
getDetail
()
{
getDetail
(
this
.
msgId
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
data
=
res
.
data
this
.
form
.
welcomeMsg
=
res
.
data
.
content
this
.
form
.
materialMsgList
=
res
.
data
.
attachments
// this.form.materialMsgList = res.data.attachments
// this.form.welcomeMsg = res.data.attachments ? res.data.attachments[0].content : '',
this
.
form
.
materialMsgList
=
res
.
data
.
attachments
?
this
.
setEditList
(
res
.
data
.
attachments
)
:
[]
this
.
$forceUpdate
()
}
else
{
this
.
msgError
(
res
.
msg
||
'获取失败'
)
}
...
...
@@ -300,7 +335,7 @@
}
.operation
{
display
:
flex
;
align-items
:
center
;
align-items
:
end
;
font-size
:
12px
;
color
:
#999
;
}
...
...
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