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 5984c2e8
authored
Sep 21, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新企微接入页面
1 parent
f787ed47
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
181 additions
and
25 deletions
src/api/modules/collocation.js
src/api/modules/wechatGroup.js
src/views/collocation/index.vue
src/views/wechatGroup/addWechatGroup.vue
src/views/wechatGroup/index.vue
src/api/modules/collocation.js
View file @
5984c2e
import
{
http
,
http2
}
from
'@/main'
const
URL
=
'rop-scrm-entmicro/router'
export
default
{
}
src/api/modules/wechatGroup.js
View file @
5984c2e
...
@@ -23,9 +23,28 @@ const queryCrowdtree = params => {
...
@@ -23,9 +23,28 @@ const queryCrowdtree = params => {
})
})
}
}
const
customerCount
=
params
=>
{
const
batchmessagingRecord
=
params
=>
{
params
.
method
=
'entmicro.api.mass.detail.customer.filter.count'
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmessaging.record'
// return http({
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 企微群发查看预计群发人数
const
atchmessagingCustomercount
=
params
=>
{
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmessaging.customercount'
return
http
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 企微群发任务创建
const
atchmessagingCreate
=
params
=>
{
params
.
method
=
'entmicro.api.wechatcloudcontrol.batchmessaging.create'
return
http
({
return
http
({
url
:
URL
,
url
:
URL
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -37,5 +56,7 @@ const customerCount = params => {
...
@@ -37,5 +56,7 @@ const customerCount = params => {
export
default
{
export
default
{
querylabeltree
,
querylabeltree
,
queryCrowdtree
,
queryCrowdtree
,
customerCount
batchmessagingRecord
,
atchmessagingCustomercount
,
atchmessagingCreate
}
}
src/views/collocation/index.vue
View file @
5984c2e
...
@@ -4,10 +4,18 @@
...
@@ -4,10 +4,18 @@
<div
class=
"table-header"
>
<div
class=
"table-header"
>
<div
class=
"header-text"
>
已激活列表
</div>
<div
class=
"header-text"
>
已激活列表
</div>
<div>
<div>
<el-button
class=
"table-btn"
@
click=
"handle
Sync
"
:size=
"size"
type=
"primary"
plain
mode=
"el-button"
>
企微接入授权
</el-button>
<el-button
class=
"table-btn"
@
click=
"handle
qrCode
"
:size=
"size"
type=
"primary"
plain
mode=
"el-button"
>
企微接入授权
</el-button>
</div>
</div>
</div>
</div>
<GLTable
ref=
"activeTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"activeTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLDialog
:title=
"'授权登入二维码'"
mode=
"small"
:visible
.
sync=
"qrCodeVisible"
>
<div
class=
"qrIMGbox"
>
<img
class=
"qrIMG"
:src=
"url"
/>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"refreshQrcode"
>
刷新
</el-button>
</span>
</GLDialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -18,6 +26,7 @@ export default {
...
@@ -18,6 +26,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
url
,
url
,
qrCodeVisible
:
false
,
searchForm
:
{
searchForm
:
{
belongWechat
:
''
,
belongWechat
:
''
,
staffName
:
''
,
staffName
:
''
,
...
@@ -70,11 +79,7 @@ export default {
...
@@ -70,11 +79,7 @@ export default {
listName
:
'list'
,
listName
:
'list'
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'员工姓名'
,
label
:
'员工企微'
,
prop
:
'staffName'
},
{
label
:
'员工企微号'
,
prop
:
'staffNum'
prop
:
'staffNum'
},
},
{
{
...
@@ -119,6 +124,12 @@ export default {
...
@@ -119,6 +124,12 @@ export default {
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
this
.
$refs
.
activeTable
.
data
.
length
?
(
this
.
$refs
.
activeTable
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activeTable
.
setTableHeightFun
()
this
.
$refs
.
activeTable
.
data
.
length
?
(
this
.
$refs
.
activeTable
.
tableHeightValues
=
''
)
:
this
.
$refs
.
activeTable
.
setTableHeightFun
()
},
handleqrCode
()
{
this
.
qrCodeVisible
=
true
},
refreshQrcode
()
{
console
.
log
(
'1111'
)
}
}
}
}
}
}
...
@@ -143,5 +154,15 @@ export default {
...
@@ -143,5 +154,15 @@ export default {
color
:
#5850ff
;
color
:
#5850ff
;
border
:
1px
solid
#5850ff
;
border
:
1px
solid
#5850ff
;
}
}
.qrIMGbox
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
.qrIMG
{
width
:
150px
;
height
:
150px
;
}
}
}
}
</
style
>
</
style
>
src/views/wechatGroup/addWechatGroup.vue
View file @
5984c2e
This diff is collapsed.
Click to expand it.
src/views/wechatGroup/index.vue
View file @
5984c2e
<
template
>
<
template
>
<div
class=
"container"
>
<div>
<div>
<el-button
@
click=
"addSendGroup"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
新建群发
</el-button>
<div
class=
"createANewGroupBtn"
>
<el-button
@
click=
"addSendGroup"
:size=
"size"
type=
"primary"
mode=
"el-button"
>
<i
class=
"el-icon-plus"
></i>
新建群发
</el-button>
</div>
<div
class=
"container"
>
<GLCombiForm
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<div
slot=
"optionBtns"
>
<div
class=
"sendRecord"
@
click=
"traceRecord"
>
发送记录
</div>
</div>
</div>
<GLCombiForm
:formObj=
"searchForm"
:rowNumber=
"1"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
</GLCombiForm>
</GLCombiForm>
<GLTable
ref=
"groupTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"groupTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
</div>
</div>
<el-drawer
size=
"40%"
title=
"发送记录"
:visible
.
sync=
"sendRecordDrawer.isVisible"
:direction=
"sendRecordDrawer.direction"
>
<div
class=
"horizon"
></div>
<div
class=
"sendRecordDrawerbox"
>
<div
v-for=
"(item, index) in sendRecordDrawer.traceFailandSuccess"
:key=
"index"
class=
"itemContent"
>
<div>
<p
class=
"title"
>
{{
item
.
title
}}
</p>
<p
class=
"num"
:style=
"
{ color: item.color }">
{{
item
.
num
}}
</p>
</div>
</div>
</div>
<GLTable
ref=
"sendRecordDrawer.ref"
:noDataImg=
"url"
:getListApi=
"sendRecordDrawer.getListApi"
:searchForm=
"sendRecordDrawer.searchForm"
:tableParams=
"sendRecordDrawer.tableParams"
:pageConf=
"sendRecordDrawer.pageConf"
></GLTable>
</el-drawer>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -15,6 +36,45 @@ export default {
...
@@ -15,6 +36,45 @@ export default {
data
()
{
data
()
{
return
{
return
{
url
,
url
,
sendRecordDrawer
:
{
isVisible
:
false
,
direction
:
'rtl'
,
traceFailandSuccess
:
[
{
title
:
'发送成功'
,
id
:
'1'
,
num
:
22
,
color
:
'#2CCA74'
},
{
title
:
'发送失败'
,
id
:
'2'
,
num
:
4
,
color
:
'#EB4E4E '
}
],
ref
:
'sendRecordDrawerRef'
,
getListApi
:
''
,
searchForm
:
''
,
tableParams
:
{
listName
:
'list'
,
tableColumns
:
[
{
label
:
'客户'
,
prop
:
'sendName'
},
{
label
:
'发送时间'
,
prop
:
'senaStore'
},
{
label
:
'发送结果'
,
prop
:
'customerNum'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
},
searchForm
:
{
searchForm
:
{
sendName
:
''
,
sendName
:
''
,
sendTime
:
''
,
sendTime
:
''
,
...
@@ -23,7 +83,7 @@ export default {
...
@@ -23,7 +83,7 @@ export default {
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'群发名称'
,
label
:
'群发名称'
,
name
:
'
send
Name'
,
name
:
'
messaging
Name'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
},
},
...
@@ -35,7 +95,7 @@ export default {
...
@@ -35,7 +95,7 @@ export default {
},
},
{
{
label
:
'群发门店'
,
label
:
'群发门店'
,
name
:
'
stor
e'
,
name
:
'
merchantNam
e'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
isClear
:
true
}
}
...
@@ -45,37 +105,49 @@ export default {
...
@@ -45,37 +105,49 @@ export default {
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'群发名称'
,
label
:
'群发名称'
,
prop
:
'
send
Name'
prop
:
'
messaging
Name'
},
},
{
{
label
:
'群发门店'
,
label
:
'群发门店'
,
prop
:
'
senaStore
'
prop
:
'
messagingMerchant
'
},
},
{
{
label
:
'客户数'
,
label
:
'客户数'
,
prop
:
'customer
Num
'
prop
:
'customer
Count
'
},
},
{
{
label
:
'标签/人群'
,
label
:
'标签/人群'
,
prop
:
'
tag
'
prop
:
'
labelCrowdName
'
},
},
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'creatTime'
prop
:
'creat
e
Time'
},
},
{
{
label
:
'发送状态'
,
label
:
'发送状态'
,
prop
:
'sendStatus'
prop
:
'sendState'
},
{
label
:
'发送成功'
,
prop
:
'successCompletion'
,
width
:
'200'
},
},
{
{
label
:
'
完成情况(失败/成功)
'
,
label
:
'
发送失败
'
,
prop
:
'f
inish
'
,
prop
:
'f
ailCompletion
'
,
width
:
'200'
width
:
'200'
},
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'66px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
}
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
,
// getListApi: this.$apis.accountConfig.listCustomizedAgentWithPage,
getListApi
:
this
.
$apis
.
wechatGroup
.
batchmessagingRecord
}
}
},
},
methods
:
{
methods
:
{
...
@@ -98,12 +170,18 @@ export default {
...
@@ -98,12 +170,18 @@ export default {
// 跳转新建群发
// 跳转新建群发
addSendGroup
()
{
addSendGroup
()
{
this
.
$router
.
push
(
'/wechatGroup/addWechatGroup'
)
this
.
$router
.
push
(
'/wechatGroup/addWechatGroup'
)
},
traceRecord
()
{
this
.
sendRecordDrawer
.
isVisible
=
true
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.createANewGroupBtn
{
margin-bottom
:
16px
;
}
.container
{
.container
{
padding
:
20px
;
padding
:
20px
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -122,5 +200,32 @@ export default {
...
@@ -122,5 +200,32 @@ export default {
color
:
#5850ff
;
color
:
#5850ff
;
border
:
1px
solid
#5850ff
;
border
:
1px
solid
#5850ff
;
}
}
.sendRecord
{
color
:
#5850ff
;
}
}
.horizon
{
width
:
100%
;
height
:
1px
;
background
:
#e8e8ea
;
}
.sendRecordDrawerbox
{
padding
:
20px
;
display
:
flex
;
justify-content
:
space-around
;
.itemContent
{
width
:
334px
;
padding
:
8px
0
8px
20px
;
border
:
1px
solid
#e8e8ea
;
}
.title
{
color
:
#666666
;
font-size
:
14px
;
margin-bottom
:
8px
;
}
.num
{
font-size
:
20px
;
font-width
:
600
;
}
}
}
</
style
>
</
style
>
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