empDetail.vue
1.61 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
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-08 11:02:19
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-09-08 11:13:18
* @FilePath: \scrm-micro-journey\src\views\journeyConfig\components\empDetail.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<GLDialog title="查看详情" @onOk="handleSure" :before-close="handleClose" @onCancel="handleClose" :visible.sync="empVisible">
<div class="dialog-body">
<div class="task-wrap">
<div class="task-item" v-for="(item, index) in taskInfo" :key="index">
<span>{{ item.label }}</span>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
export default {
props: {
empVisible: Boolean
},
data() {
return {
taskInfo: [
{
label: '需执行客户数量'
},
{
label: '已下达任务数量'
},
{
label: '需执行任务员工数'
}
]
}
},
methods: {
//获取活动信息
getActivity() {
console.log(this.addForm.activityId)
},
init() {
this.empVisible = true
this.getActivityList()
},
//关联活动
handleSure() {
this.$refs.addForm.validate(valid => {
if (valid) {
this.handleClose()
this.$emit('setProcess')
}
})
},
handleClose() {
this.empVisible = false
}
}
}
</script>
<style lang="scss" scoped>
.dialog-body {
padding: 16px;
}
</style>