statDialog.vue
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
<GLDialog title="SOP执行统计" :visible.sync="statVisible" width="70%" :before-close="handleClose" :hasFooter="false">
<div class="dialog-body">
<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>
export default {
props: {
statVisible: Boolean
},
data() {
return {
loading:false,
tableSearchForm:{},
getListApi: this.$apis.journeyConfig.getTaskList,
pageConf: { pageSize: 'pageNumber', pageNum: 'pageNumber', totalCount: 'total' },
tableParams: {
listName: 'list',
tableColumns: [
{
label: '营销计划',
prop: 'plan'
},
{
label: '触达方式',
prop: 'taskType'
},
{
label: '今日营销客户数',
prop: 'todayCusCount'
},
{
label: '今日下发任务数',
prop: 'todayTaskCount'
},
{
label: '累计营销客户数',
prop: 'totalCusCount'
},
{
label: '累计下发任务数',
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
}
}
}
</script>
<style scoped lang="scss"></style>