Commit 4c09a3a5 by chenwq

sop

1 parent d1659c0f
...@@ -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'
......
...@@ -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: '人群名称',
......
...@@ -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()
}, },
......
...@@ -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)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!