sopAnalysisList.vue
1.94 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
75
76
77
78
79
80
81
82
83
84
85
<!-- 营销sop -->
<template>
<div class="sop-analysis">
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="完成率分析" name="compleList">
<complete-list v-if="activeName == 'compleList'" :sopId="routeInfo.id"></complete-list>
</el-tab-pane>
<el-tab-pane label="触达率分析" name="touchList">
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list>
</el-tab-pane>
<el-tab-pane label="员工完成率分析" name="staffList">
<staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
</el-tab-pane>
</el-tabs>
<el-button :size="size" class="sop-back-btn" type="primary" @click="handleBack">返回</el-button>
</div>
</template>
<script>
import completeList from './sopAnalysis/completeList.vue'
import touchList from './sopAnalysis/touchList.vue'
import staffList from './sopAnalysis/staffList.vue'
export default {
name: 'gitfBag',
data() {
return {
activeName: 'compleList',
size: 'small',
routeInfo: {
id: '',
fromPage: '/marketing/sop/index'
}
}
},
components: {
completeList,
touchList,
staffList
},
created() {
this.routeInfo = this.$route.query
},
methods: {
handleTabClick() { },
handleBack() {
this.$history.push({
path: this.routeInfo.fromPage
})
}
}
}
</script>
<style>
.sop-analysis {
position: relative;
}
.sop-analysis .el-tabs__header {
margin-bottom: 20px;
}
.sop-analysis .el-tabs__nav-wrap:after {
opacity: 0;
}
.sop-analysis .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
font-weight: 400;
font-size: 16px;
color: #717171;
height: 36px;
line-height: 36px;
}
.sop-analysis .el-tabs__item:hover,
.sop-analysis .el-tabs__item.is-active {
color: #5f5efb;
}
.sop-analysis .sop-back-btn {
position: absolute;
top: 0;
right: 0;
}
</style>