Commit b0770cf3 by 王志慧

fixed

1 parent bac1cf59
...@@ -139,5 +139,15 @@ const getStaffList = params => { ...@@ -139,5 +139,15 @@ const getStaffList = params => {
sign: true sign: true
}) })
} }
// 查询任务详情
const getTaskList = params => {
return http_sop({
url: `/process/sop/api/sopInsts/getTaskList`,
method: 'post',
data: params,
noSessionId: true,
sign: false
})
}
// entmicro.api.staff.listFollowerStaffByPage 跟进专员类型查询员工 // entmicro.api.staff.listFollowerStaffByPage 跟进专员类型查询员工
export default { updateParam,getStaffList,getFollowListType,querylabeltree,activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo, listDepartmentTree } export default { getTaskList,updateParam,getStaffList,getFollowListType,querylabeltree,activityPage, byGroupIdSop, getInstIdDetail, setSopInsts, concatActivity, findMarketingTask, getActivityDetailApi, activityRelInfo, listDepartmentTree }
<template> <template>
<GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false"> <GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
<div class="dialog-body"> <div class="dialog-body">
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable> <GLTable v-loading="loading" :searchForm="tableSearchForm" :hasNum="true" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" ref="leadManage" :getListApi="getListApi" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams"></GLTable>
</div> </div>
</GLDialog> </GLDialog>
</template> </template>
<script> <script>
import { getTableList } from '@/api/modules/leadManage'
export default { export default {
props: { props: {
statVisible: Boolean statVisible: Boolean
}, },
data() { data() {
return { return {
getListApi: getTableList, loading:false,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' }, tableSearchForm:{},
getListApi: this.$apis.journeyConfig.getTaskList,
pageConf: { pageSize: 'pageNumber', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
{ {
label: '营销计划', label: '营销计划',
prop: 'orderNo' prop: 'plan'
}, },
{ {
label: '触达方式', label: '触达方式',
prop: 'name' prop: 'taskType'
}, },
{ {
label: '今日营销客户数', label: '今日营销客户数',
prop: 'phone' prop: 'todayCusCount'
}, },
{ {
label: '今日下发任务数', label: '今日下发任务数',
prop: 'type', prop: 'todayTaskCount'
addHtml: 'type'
}, },
{ {
label: '累计营销客户数', label: '累计营销客户数',
prop: 'status' prop: 'totalCusCount'
}, },
{ {
label: '累计下发任务数', label: '累计下发任务数',
prop: 'userName' prop: 'totalTaskCount'
} }
] ]
} }
} }
}, },
created() {
const query = this.$route.query
this.query = query
},
methods: { methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.loading = true
console.log(1111111111)
this.tableSearchForm = {
instId:this.query.instId
}
resolve()
})
},
setTableFinishFun() {
this.loading = false
},
handleClose() { handleClose() {
this.$parent.statVisible = false this.$parent.statVisible = false
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!