Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 4c09a3a5
authored
May 25, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sop
1 parent
d1659c0f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
33 deletions
src/api/modules/sop.js
src/views/sop/editSop/components/selectCrowd.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/sopAnalysis/completeList.vue
src/api/modules/sop.js
View file @
4c09a3a
...
@@ -99,17 +99,6 @@ const getFailEventList = params => {
...
@@ -99,17 +99,6 @@ const getFailEventList = params => {
})
})
}
}
// sop-完成率-根据evnetid获取成功事件列表
// const getSuccessEventList = params => {
// params.method = 'scrm.api.sop.sopEvent.listEventFailByEventId'
// return http({
// url: 'rop-scrm-sop/router',
// method: 'POST',
// data: params,
// sign: true
// })
// }
// 校验当前商户的企微群发任务情况
// 校验当前商户的企微群发任务情况
const
getTaskStatusApi
=
params
=>
{
const
getTaskStatusApi
=
params
=>
{
params
.
method
=
'scrm.api.sop.task.merchantWWMsgTaskStatusCheck'
params
.
method
=
'scrm.api.sop.task.merchantWWMsgTaskStatusCheck'
...
...
src/views/sop/editSop/components/selectCrowd.vue
View file @
4c09a3a
...
@@ -44,11 +44,11 @@ export default {
...
@@ -44,11 +44,11 @@ export default {
tableParams
:
{
tableParams
:
{
listName
:
'crowdUnitList'
,
listName
:
'crowdUnitList'
,
// 行数据的key
// 行数据的key
mutiSelectUniqueKey
:
'crowdId'
,
//
mutiSelectUniqueKey: 'crowdId',
checkSelectKey
:
'crowdId'
,
//
checkSelectKey: 'crowdId',
checkSelectVal
:
[],
//
checkSelectVal: [],
// 多选ref的名称
// 多选ref的名称
mutiSelectName
:
'list'
,
//
mutiSelectName: 'list',
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'人群名称'
,
label
:
'人群名称'
,
...
...
src/views/sop/editSop/editEvent.vue
View file @
4c09a3a
...
@@ -520,7 +520,6 @@ export default {
...
@@ -520,7 +520,6 @@ export default {
this
.
editForm
.
eventStartDate
=
moment
(
this
.
editForm
.
eventStartDate
).
format
(
'YYYY-MM-DD'
)
this
.
editForm
.
eventStartDate
=
moment
(
this
.
editForm
.
eventStartDate
).
format
(
'YYYY-MM-DD'
)
this
.
editForm
.
eventEndDate
=
this
.
editForm
.
eventEndDate
?
moment
(
this
.
editForm
.
eventEndDate
).
format
(
'YYYY-MM-DD'
)
:
''
this
.
editForm
.
eventEndDate
=
this
.
editForm
.
eventEndDate
?
moment
(
this
.
editForm
.
eventEndDate
).
format
(
'YYYY-MM-DD'
)
:
''
this
.
previewList
=
this
.
editForm
.
object
?
[{
attContent
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
.
object
)),
additionalType
:
this
.
editForm
.
object
.
additionalType
}]
:
[]
this
.
previewList
=
this
.
editForm
.
object
?
[{
attContent
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
editForm
.
object
)),
additionalType
:
this
.
editForm
.
object
.
additionalType
}]
:
[]
this
.
editForm
.
followerTypeId
=
this
.
editForm
.
followerTypeId
+
''
this
.
recoveryRepeat
()
this
.
recoveryRepeat
()
this
.
recoveryEndTime
()
this
.
recoveryEndTime
()
},
},
...
...
src/views/sop/sopAnalysis/completeList.vue
View file @
4c09a3a
...
@@ -47,12 +47,6 @@
...
@@ -47,12 +47,6 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"completeListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"completeListRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"finishEventCount"
slot-scope=
"scope"
>
<el-popover
v-show=
"scope.scope.successEventList"
placement=
"bottom-end"
width=
"200"
trigger=
"click"
:content=
"scope.scope.successEventList"
>
<span
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetSuccessEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
finishEventCount
:
'-'
}}
</span>
</el-popover>
<span
v-show=
"!scope.scope.successEventList"
class=
"cursor-pointer"
@
click=
"handleGetSuccessEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
finishEventCount
:
'-'
}}
</span>
</
template
>
<template
slot=
"failEventCount"
slot-scope=
"scope"
>
<template
slot=
"failEventCount"
slot-scope=
"scope"
>
<el-popover
v-show=
"scope.scope.failEventList"
placement=
"bottom-end"
width=
"200"
trigger=
"click"
:content=
"scope.scope.failEventList"
>
<el-popover
v-show=
"scope.scope.failEventList"
placement=
"bottom-end"
width=
"200"
trigger=
"click"
:content=
"scope.scope.failEventList"
>
<span
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetFailEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
failEventCount
:
'-'
}}
</span>
<span
class=
"cursor-pointer"
slot=
"reference"
@
click=
"handleGetFailEvent(scope.scope)"
>
{{
scope
.
scope
.
eventStatistics
?
scope
.
scope
.
eventStatistics
.
failEventCount
:
'-'
}}
</span>
...
@@ -138,10 +132,9 @@ export default {
...
@@ -138,10 +132,9 @@ export default {
label
:
'已完成事件数'
,
label
:
'已完成事件数'
,
prop
:
'finishEventCount'
,
prop
:
'finishEventCount'
,
width
:
'140'
,
width
:
'140'
,
addHtml
:
'finishEventCount'
formatter
:
cellValue
=>
{
// formatter: cellValue => {
return
cellValue
.
eventStatistics
?
cellValue
.
eventStatistics
.
finishEventCount
:
'-'
// return cellValue.eventStatistics ? cellValue.eventStatistics.finishEventCount : '-'
}
// }
},
},
{
{
label
:
'失败事件数'
,
label
:
'失败事件数'
,
...
@@ -188,13 +181,6 @@ export default {
...
@@ -188,13 +181,6 @@ export default {
})
})
},
},
handleGetSuccessEvent
(
row
)
{
this
.
$apis
.
sop
.
getFailEventList
({
id
:
row
.
id
}).
then
(
res
=>
{
let
idx
=
this
.
$refs
.
completeListRef
.
data
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
this
.
$refs
.
completeListRef
.
data
[
idx
].
successEventList
=
res
})
},
handleGetFailEvent
(
row
)
{
handleGetFailEvent
(
row
)
{
this
.
$apis
.
sop
.
getFailEventList
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
$apis
.
sop
.
getFailEventList
({
id
:
row
.
id
}).
then
(
res
=>
{
let
idx
=
this
.
$refs
.
completeListRef
.
data
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
let
idx
=
this
.
$refs
.
completeListRef
.
data
.
findIndex
(
item
=>
item
.
id
==
row
.
id
)
...
...
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