Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 79a7020b
authored
Jan 09, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新v3.4.0代码
1 parent
e712f9b5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
127 additions
and
46 deletions
src/api/modules/friendGroup.js
src/api/modules/wechatGroup.js
src/views/friendGroup/friendGroupAdd.vue
src/views/friendGroup/index.vue
src/views/wechatGroup/addWechatGroup.vue
src/views/wechatGroup/index.vue
src/api/modules/friendGroup.js
View file @
79a7020
...
@@ -56,10 +56,21 @@ const compressionUpload = params => {
...
@@ -56,10 +56,21 @@ const compressionUpload = params => {
sign
:
false
sign
:
false
})
})
}
}
const
sendStop
=
params
=>
{
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmoment.send.stop'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
export
default
{
merchantList
,
merchantList
,
conditionPage
,
conditionPage
,
batchmomentRecord
,
batchmomentRecord
,
batchmomentSave
,
batchmomentSave
,
compressionUpload
compressionUpload
,
sendStop
}
}
src/api/modules/wechatGroup.js
View file @
79a7020
...
@@ -71,7 +71,16 @@ const recordSend = params => {
...
@@ -71,7 +71,16 @@ const recordSend = params => {
sign
:
true
sign
:
true
})
})
}
}
const
sendStop
=
params
=>
{
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmessaging.send.stop'
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
export
default
{
...
@@ -81,5 +90,6 @@ export default {
...
@@ -81,5 +90,6 @@ export default {
batchmessagingCustomercount
,
batchmessagingCustomercount
,
atchmessagingCreate
,
atchmessagingCreate
,
getStoreList
,
getStoreList
,
recordSend
recordSend
,
sendStop
}
}
src/views/friendGroup/friendGroupAdd.vue
View file @
79a7020
...
@@ -229,6 +229,7 @@ export default {
...
@@ -229,6 +229,7 @@ export default {
basicRules
:
{
basicRules
:
{
taskMerchantId
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}],
taskMerchantId
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}],
taskName
:
[{
required
:
true
,
message
:
'请输入群发名称'
,
trigger
:
'blur'
}],
taskName
:
[{
required
:
true
,
message
:
'请输入群发名称'
,
trigger
:
'blur'
}],
selectType
:
[{
required
:
true
,
message
:
'请选择客户类型'
,
trigger
:
'change'
}],
sendType
:
[
sendType
:
[
{
required
:
true
,
message
:
'请选择发送时间'
,
trigger
:
'change'
},
{
required
:
true
,
message
:
'请选择发送时间'
,
trigger
:
'change'
},
{
validator
:
validatorSendType
,
trigger
:
'change'
}
{
validator
:
validatorSendType
,
trigger
:
'change'
}
...
@@ -346,8 +347,10 @@ export default {
...
@@ -346,8 +347,10 @@ export default {
const
{
taskName
,
taskMerchantId
,
sendType
}
=
this
.
basicForm
const
{
taskName
,
taskMerchantId
,
sendType
}
=
this
.
basicForm
const
taskMerchantName
=
this
.
optionsMe
.
find
(
item
=>
item
.
msgMerchantId
==
taskMerchantId
).
msgMerchantName
const
taskMerchantName
=
this
.
optionsMe
.
find
(
item
=>
item
.
msgMerchantId
==
taskMerchantId
).
msgMerchantName
let
peopleParams
=
this
.
getBaseInfo
()
let
peopleParams
=
this
.
getBaseInfo
()
if
(
this
.
basicForm
.
selectType
!=
0
){
this
.
getTheNumberOfPeople
(
peopleParams
)
this
.
getTheNumberOfPeople
(
peopleParams
)
if
(
this
.
groupNumber
==
0
)
{
}
if
(
this
.
basicForm
.
selectType
!=
0
&&
this
.
groupNumber
==
0
)
{
this
.
$message
({
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
message
:
'群发人数为0!'
message
:
'群发人数为0!'
...
@@ -366,6 +369,8 @@ export default {
...
@@ -366,6 +369,8 @@ export default {
if
(
params
.
sendType
==
2
)
{
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
}
console
.
log
(
params
)
this
.
addLoading
=
true
this
.
addLoading
=
true
this
.
$apis
.
friendGroup
.
batchmomentSave
(
params
).
then
(
res
=>
{
this
.
$apis
.
friendGroup
.
batchmomentSave
(
params
).
then
(
res
=>
{
this
.
addLoading
=
false
this
.
addLoading
=
false
...
...
src/views/friendGroup/index.vue
View file @
79a7020
...
@@ -3,18 +3,23 @@
...
@@ -3,18 +3,23 @@
<div
class=
"marketing pro-group"
>
<div
class=
"marketing pro-group"
>
<div
class=
"m-b-20 friend-title"
>
<div
class=
"m-b-20 friend-title"
>
<div>
<div>
<!--
<GLButton
:size=
"size"
class=
"el-icon-plus"
type=
"primary"
fn=
"新建朋友圈群发"
@
click=
"handleEdit(1)"
>
新建朋友圈群发
</GLButton>
-->
<!--
<GLButton
:size=
"size"
class=
"el-icon-plus"
type=
"primary"
fn=
"新建朋友圈群发"
@
click=
"handleEdit(1)"
>
新建朋友圈群发
</GLButton>
-->
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
fn=
"新建朋友圈群发"
@
click=
"handleEdit(1)"
>
新建朋友圈群发
</el-button>
<el-button
:size=
"size"
type=
"primary"
class=
"el-icon-plus"
fn=
"新建朋友圈群发"
@
click=
"handleEdit(1)"
>
新建朋友圈群发
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
v-loading=
"loading"
ref=
"proGroupRef"
@
refreshTable=
"handleSearch"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<GLTable
v-loading=
"loading"
ref=
"proGroupRef"
@
refreshTable=
"handleSearch"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<div
class=
"loginStatus"
slot=
"sendStatus"
slot-scope=
"scope"
>
<div
class=
"loginStatus"
slot=
"sendStatus"
slot-scope=
"scope"
>
<span
class=
"cycle"
:style=
"
{ background: scope.scope.sendStat
e == '1' ? '#2CCA74' : scope.scope.sendState == '2' ? '#EB4E4E' : scope.scope.sendState == '0' ? '#FDB757' : scope.scope.sendState == '3' ? '#E5E5E5':
'' }">
</span>
<span
class=
"cycle"
:style=
"
{ background: scope.scope.sendStat
us == '2' ? '#2CCA74' : scope.scope.sendStatus == '-1' ? '#EB4E4E' : scope.scope.sendStatus == '1' ? '#FDB757' : scope.scope.sendStatus == '0'? '#E5E5E5' :
'' }">
</span>
{{
scope
.
scope
.
sendStat
e
==
'1'
?
'已完成'
:
scope
.
scope
.
sendState
==
'2'
?
'发送失败'
:
scope
.
scope
.
sendState
==
'0'
?
'发送中'
:
scope
.
scope
.
sendState
==
'3'
?
'待发送'
:
''
}}
{{
scope
.
scope
.
sendStat
us
==
'2'
?
'已完成'
:
scope
.
scope
.
sendStatus
==
'-1'
?
'发送失败'
:
scope
.
scope
.
sendStatus
==
'1'
?
'发送中'
:
scope
.
scope
.
sendStatus
==
'0'
?
'待发送'
:
''
}}
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
...
@@ -22,15 +27,8 @@
...
@@ -22,15 +27,8 @@
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<GLDialog
:title=
"'终止发送'"
mode=
"small"
:visible
.
sync=
"popVisible"
>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"popVisible = false"
type=
"error"
content=
"是否确认终止发送?"
<div
class=
"qrIMGbox"
>
:visible
.
sync=
"popVisible"
mode=
"small"
></GLDialog>
是否确认终止发送
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"popVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"getCode"
>
确定
</el-button>
</span>
</GLDialog>
<draw-record
ref=
"drawForm"
></draw-record>
<draw-record
ref=
"drawForm"
></draw-record>
</div>
</div>
</
template
>
</
template
>
...
@@ -39,8 +37,9 @@
...
@@ -39,8 +37,9 @@
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
drawRecord
from
'./components/drawRecord'
import
drawRecord
from
'./components/drawRecord'
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
import
department
from
'@/mixins/department'
import
department
from
'@/mixins/department'
export
default
{
export
default
{
mixins
:
[
department
],
mixins
:
[
department
],
name
:
'friendGroup'
,
name
:
'friendGroup'
,
...
@@ -49,7 +48,8 @@ export default {
...
@@ -49,7 +48,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
popVisible
:
false
,
selectItem
:
{},
popVisible
:
false
,
size
:
'small'
,
size
:
'small'
,
loading
:
false
,
loading
:
false
,
url
:
url
,
url
:
url
,
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
goodsStatus
:
0
goodsStatus
:
0
},
},
downRules
:
{
downRules
:
{
offReason
:
[{
required
:
true
,
message
:
'请输入下架备注'
,
trigger
:
'change'
}]
offReason
:
[{
required
:
true
,
message
:
'请输入下架备注'
,
trigger
:
'change'
}]
},
},
updatedTime
:
''
,
updatedTime
:
''
,
// 分享
// 分享
...
@@ -119,7 +119,7 @@ export default {
...
@@ -119,7 +119,7 @@ export default {
type
:
'text'
type
:
'text'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
sendStatus
==
3
return
row
.
sendStatus
==
0
},
},
listeners
:
{
listeners
:
{
click
:
this
.
terminatePopup
click
:
this
.
terminatePopup
...
@@ -153,6 +153,12 @@ export default {
...
@@ -153,6 +153,12 @@ export default {
minwidth
:
180
minwidth
:
180
},
},
{
{
label
:
'发送时间'
,
prop
:
'sendTime'
,
width
:
180
,
line
:
1
},
{
label
:
'发送状态'
,
label
:
'发送状态'
,
name
:
'sendStatus'
,
name
:
'sendStatus'
,
addHtml
:
'sendStatus'
,
addHtml
:
'sendStatus'
,
...
@@ -172,7 +178,7 @@ export default {
...
@@ -172,7 +178,7 @@ export default {
},
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableTotal
:
0
,
tableTotal
:
0
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
}
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
}
}
}
},
},
...
@@ -181,11 +187,27 @@ export default {
...
@@ -181,11 +187,27 @@ export default {
const
merchantList
=
await
this
.
merchantList
()
const
merchantList
=
await
this
.
merchantList
()
const
index
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantName'
)
const
index
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantName'
)
this
.
searchFormData
[
index
].
optionList
=
merchantList
?
merchantList
.
data
:
[]
this
.
searchFormData
[
index
].
optionList
=
merchantList
?
merchantList
.
data
:
[]
this
.
searchFormData
[
index
].
optionList
.
unshift
({
msgMerchantId
:
null
,
msgMerchantName
:
'全部'
})
this
.
searchFormData
[
index
].
optionList
.
unshift
({
msgMerchantId
:
null
,
msgMerchantName
:
'全部'
})
},
},
methods
:
{
methods
:
{
terminatePopup
(){
async
handleSure
()
{
const
{
id
}
=
this
.
selectItem
await
this
.
$apis
.
friendGroup
.
sendStop
({
id
}).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'终止成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
popVisible
=
false
this
.
handleReset
()
},
terminatePopup
(
scope
)
{
this
.
selectItem
=
scope
console
.
log
(
scope
)
this
.
popVisible
=
true
this
.
popVisible
=
true
},
},
handleRecord
(
row
)
{
handleRecord
(
row
)
{
...
@@ -210,7 +232,8 @@ export default {
...
@@ -210,7 +232,8 @@ export default {
}
}
})
})
},
},
getParams
()
{},
getParams
()
{
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
resolve
()
resolve
()
...
@@ -326,18 +349,22 @@ export default {
...
@@ -326,18 +349,22 @@ export default {
.el-table
th
>
.cell
{
.el-table
th
>
.cell
{
padding
:
0
16px
;
padding
:
0
16px
;
}
}
.el-date-editor
{
.el-date-editor
{
width
:
210px
!important
;
width
:
210px
!important
;
}
}
}
}
.container
{
.container
{
background
:
#fff
;
background
:
#fff
;
padding
:
20px
;
padding
:
20px
;
margin-top
:
16px
;
margin-top
:
16px
;
}
}
.loginStatus
{
.loginStatus
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.cycle
{
.cycle
{
margin-right
:
8px
;
margin-right
:
8px
;
width
:
6px
;
width
:
6px
;
...
@@ -346,37 +373,44 @@ export default {
...
@@ -346,37 +373,44 @@ export default {
border-radius
:
50%
;
border-radius
:
50%
;
}
}
}
}
.friend-title
{
.friend-title
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
color
:
#666666
;
color
:
#666666
;
.title
{
.title
{
.info-refresh
{
.info-refresh
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#5850ff
;
color
:
#5850ff
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-left
:
20px
;
margin-left
:
20px
;
.wait-status
{
.wait-status
{
transition
:
all
ease-in
1s
;
transition
:
all
ease-in
1s
;
transform
:
rotate
(
360deg
);
transform
:
rotate
(
360deg
);
}
}
}
}
.info-time
{
.info-time
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#7d7d7d
;
color
:
#7d7d7d
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
}
}
span
{
span
{
font-size
:
14px
;
font-size
:
14px
;
margin-left
:
10px
;
margin-left
:
10px
;
font-weight
:
100
;
font-weight
:
100
;
}
}
}
}
.attachmentList-box
{
.attachmentList-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.attachmentList-image
{
.attachmentList-image
{
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
...
@@ -387,21 +421,25 @@ export default {
...
@@ -387,21 +421,25 @@ export default {
align-items
:
center
;
align-items
:
center
;
color
:
#fff
;
color
:
#fff
;
font-size
:
24px
;
font-size
:
24px
;
.image-num
{
.image-num
{
font-size
:
14px
;
font-size
:
14px
;
z-index
:
10
;
z-index
:
10
;
}
}
.image-panel
{
.image-panel
{
position
:
absolute
;
position
:
absolute
;
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
top
:
0px
;
top
:
0px
;
left
:
0px
;
left
:
0px
;
img
{
img
{
width
:
36px
;
width
:
36px
;
height
:
36px
;
height
:
36px
;
}
}
}
}
.el-icon-reading
{
.el-icon-reading
{
position
:
absolute
;
position
:
absolute
;
font-size
:
24px
;
font-size
:
24px
;
...
@@ -409,9 +447,11 @@ export default {
...
@@ -409,9 +447,11 @@ export default {
left
:
5px
;
left
:
5px
;
color
:
#fff
;
color
:
#fff
;
}
}
&
.attachmentList-video
{
&
.attachmentList-video
{
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.7
);
background
:
rgba
(
$
color
:
#000000
,
$
alpha
:
0.7
);
position
:
relative
;
position
:
relative
;
img
{
img
{
position
:
absolute
;
position
:
absolute
;
top
:
6px
;
top
:
6px
;
...
@@ -420,6 +460,7 @@ export default {
...
@@ -420,6 +460,7 @@ export default {
height
:
24px
;
height
:
24px
;
}
}
}
}
>
img
{
>
img
{
position
:
absolute
;
position
:
absolute
;
top
:
0px
;
top
:
0px
;
...
@@ -428,6 +469,7 @@ export default {
...
@@ -428,6 +469,7 @@ export default {
height
:
36px
;
height
:
36px
;
}
}
}
}
.attachmentList-text
{
.attachmentList-text
{
font-size
:
14px
;
font-size
:
14px
;
text-align
:
left
;
text-align
:
left
;
...
...
src/views/wechatGroup/addWechatGroup.vue
View file @
79a7020
...
@@ -371,6 +371,7 @@ export default {
...
@@ -371,6 +371,7 @@ export default {
})
})
params
.
contentList
=
contentList
params
.
contentList
=
contentList
this
.
addLoading
=
true
this
.
addLoading
=
true
console
.
log
(
params
)
await
this
.
$apis
.
wechatGroup
.
atchmessagingCreate
(
params
).
then
(
res
=>
{
await
this
.
$apis
.
wechatGroup
.
atchmessagingCreate
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
$message
({
this
.
$message
({
...
...
src/views/wechatGroup/index.vue
View file @
79a7020
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
<GLCombiForm
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"activeTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"activeTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
slot=
"optionBtns"
slot-scope=
"scope"
>
<div
v-if=
"scope.scope.sendState ==
'3'
"
>
<div
v-if=
"scope.scope.sendState ==
1
"
>
<span
class=
"sendRecord"
@
click=
"traceRecord(scope.scope)"
>
发送记录
</span>
<span
class=
"sendRecord"
@
click=
"traceRecord(scope.scope)"
>
发送记录
</span>
</div>
</div>
<div
v-if=
"scope.scope.sendState ==
'1'
"
>
<div
v-if=
"scope.scope.sendState ==
3
"
>
<span
class=
"sendRecord"
@
click=
"terminatePopup"
>
终止
</span>
<span
class=
"sendRecord"
@
click=
"terminatePopup
(scope.scope)
"
>
终止
</span>
</div>
</div>
</div>
</div>
<div
slot=
"sendState"
slot-scope=
"scope"
>
<div
slot=
"sendState"
slot-scope=
"scope"
>
...
@@ -25,15 +25,7 @@
...
@@ -25,15 +25,7 @@
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
<GLDialog
:title=
"'终止发送'"
mode=
"small"
:visible
.
sync=
"popVisible"
>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"popVisible = false"
type=
"error"
content=
"是否确认终止发送?"
:visible
.
sync=
"popVisible"
mode=
"small"
></GLDialog>
<div
class=
"qrIMGbox"
>
是否确认终止发送
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"popVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"getCode"
>
确定
</el-button>
</span>
</GLDialog>
<el-drawer
size=
"50%"
title=
"发送记录"
:visible
.
sync=
"sendRecordDrawer.isVisible"
:direction=
"sendRecordDrawer.direction"
>
<el-drawer
size=
"50%"
title=
"发送记录"
:visible
.
sync=
"sendRecordDrawer.isVisible"
:direction=
"sendRecordDrawer.direction"
>
<div
class=
"horizon"
></div>
<div
class=
"horizon"
></div>
<div
class=
"sendRecordDrawerbox"
>
<div
class=
"sendRecordDrawerbox"
>
...
@@ -65,6 +57,7 @@ export default {
...
@@ -65,6 +57,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
url
,
url
,
selectItem
:{},
popVisible
:
false
,
popVisible
:
false
,
sendRecordDrawer
:
{
sendRecordDrawer
:
{
isVisible
:
false
,
isVisible
:
false
,
...
@@ -153,7 +146,7 @@ export default {
...
@@ -153,7 +146,7 @@ export default {
{
{
label
:
'客户数'
,
label
:
'客户数'
,
prop
:
'customerCount'
,
prop
:
'customerCount'
,
width
:
80
//
width: 80
},
},
{
{
label
:
'标签/人群'
,
label
:
'标签/人群'
,
...
@@ -164,21 +157,30 @@ export default {
...
@@ -164,21 +157,30 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createTime'
,
prop
:
'createTime'
,
width
:
280
,
width
:
250
,
line
:
1
},
{
label
:
'发送时间'
,
prop
:
'sendTime'
,
width
:
180
,
line
:
1
line
:
1
},
},
{
{
label
:
'发送状态'
,
label
:
'发送状态'
,
prop
:
'sendState'
,
prop
:
'sendState'
,
addHtml
:
'sendState'
,
addHtml
:
'sendState'
,
width
:
150
,
},
},
{
{
label
:
'发送成功'
,
label
:
'发送成功'
,
prop
:
'successCompletion'
prop
:
'successCompletion'
,
width
:
150
,
},
},
{
{
label
:
'发送失败'
,
label
:
'发送失败'
,
prop
:
'failCompletion'
prop
:
'failCompletion'
,
width
:
150
,
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
...
@@ -194,10 +196,20 @@ export default {
...
@@ -194,10 +196,20 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
terminatePopup
(){
async
handleSure
(){
console
.
log
(
'??????'
)
const
{
msgId
}
=
this
.
selectItem
await
this
.
$apis
.
wechatGroup
.
sendStop
({
msgId
}).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'终止成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
popVisible
=
false
this
.
handleReset
()
},
terminatePopup
(
scope
){
this
.
selectItem
=
scope
this
.
popVisible
=
true
this
.
popVisible
=
true
console
.
log
(
this
.
popVisible
)
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
activeTable
.
refreshTable
()
this
.
$refs
.
activeTable
.
refreshTable
()
...
...
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