Commit b0770cf3 by 王志慧

fixed

1 parent bac1cf59
......@@ -139,5 +139,15 @@ const getStaffList = params => {
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 跟进专员类型查询员工
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>
<GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
<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>
</GLDialog>
</template>
<script>
import { getTableList } from '@/api/modules/leadManage'
export default {
props: {
statVisible: Boolean
},
data() {
return {
getListApi: getTableList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
loading:false,
tableSearchForm:{},
getListApi: this.$apis.journeyConfig.getTaskList,
pageConf: { pageSize: 'pageNumber', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '营销计划',
prop: 'orderNo'
prop: 'plan'
},
{
label: '触达方式',
prop: 'name'
prop: 'taskType'
},
{
label: '今日营销客户数',
prop: 'phone'
prop: 'todayCusCount'
},
{
label: '今日下发任务数',
prop: 'type',
addHtml: 'type'
prop: 'todayTaskCount'
},
{
label: '累计营销客户数',
prop: 'status'
prop: 'totalCusCount'
},
{
label: '累计下发任务数',
prop: 'userName'
prop: 'totalTaskCount'
}
]
}
}
},
created() {
const query = this.$route.query
this.query = query
},
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.loading = true
console.log(1111111111)
this.tableSearchForm = {
instId:this.query.instId
}
resolve()
})
},
setTableFinishFun() {
this.loading = false
},
handleClose() {
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!