view.vue
4.43 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!--
* @Description:
* @Author: huyue
* @Date: 2024-04-17 17:50:41
* @LastEditors: huyue
* @LastEditTime: 2024-05-07 10:57:45
-->
<template>
<div>
<d2-container class="exercise-veiw">
<el-form label-width="230px">
<div class="d2-container-content">
<div class="storeConfigCon_title">
<div class="edit-sub-title title">基本信息</div>
</div>
<el-form-item label="业务场景:">
<span>{{ scenarioType[taskInfo.businessScenario] }}</span>
</el-form-item>
<el-form-item label="任务名称:">
<span>{{ taskInfo.taskName }}</span>
</el-form-item>
<el-form-item label="任务时间:">
<span>{{ taskInfo.startTime }} - {{ taskInfo.endTime }}</span>
</el-form-item>
</div>
<div class="d2-container-content">
<div class="storeConfigCon_title">
<div class="edit-sub-title title">任务明细</div>
</div>
<el-form-item label="任务分类:">
<span>{{ taskType[taskInfo.taskType] }}</span>
</el-form-item>
<el-form-item label="客户分类:">
<span>{{ aiType[taskInfo.aiType] }}</span>
</el-form-item>
<el-form-item label="提示词:">
<span>{{ taskInfo.promptOnOff == 1 ? "开" : "关" }}</span>
</el-form-item>
</div>
<div class="d2-container-content">
<div class="storeConfigCon_title">
<div class="edit-sub-title title">驻店员工</div>
</div>
<el-form-item label="驻店员工:">
<div style="width: 728px">
<d2-table
ref="exerciseViewTable"
:row-style="{ height: '50px' }"
:has-num="true"
:search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
>
</d2-table>
</div>
</el-form-item>
</div>
<el-form-item style="margin-top: 40px; text-align: center">
<el-button
class="width_100 cancel-btn"
type="primary"
plain
@click="handleClose"
>
返回
</el-button>
</el-form-item>
</el-form>
</d2-container>
</div>
</template>
<script>
import { mapActions } from "vuex"
import { getTaskStaffList } from "@api/exercise"
import { scenarioType } from "./contant"
export default {
data() {
return {
scenarioType,
tableData: [
{
staffName: "张三",
phoneNumber: "13812345678",
registerTime: "2019-09-09 12:00:00"
},
{
staffName: "张三",
phoneNumber: "13812345678"
}
],
getListApi: getTaskStaffList,
searchForm: {},
tableParams: {
listName: "list",
tableColumns: [
{
label: "驻店名称",
prop: "yqMerchantName"
},
{
label: "驻店员工名称",
prop: "staffName"
},
{
label: "手机号",
prop: "staffPhone"
}
]
},
taskInfo: {},
taskType: {
1: "实战演练"
},
aiType: {
1: "独裁型",
2: "沉默型",
3: "理智型",
4: "人际型",
5: "犹豫型",
6: "新手司机",
7: "老手司机",
8: "女司机",
9: "价格型"
}
}
},
mounted() {
this.taskInfo = JSON.parse(this.$route.query.detail)
console.log(this.taskInfo)
this.searchForm.taskId = this.taskInfo.id
},
methods: {
...mapActions({
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
handleClose() {
this.close({ tagName: "/exerciseView" })
this.$router.push({
name: "exercise",
query: {
tabPane: "1",
tabLabel: "exerciseTask"
}
})
}
}
}
</script>
<style scoped lang="scss">
.exercise-veiw {
.d2-container-content {
padding: 20px 0 !important;
}
}
.storeConfigCon_title {
box-sizing: border-box;
padding: 10px 20px;
border-bottom: 1px solid #e5e5e5;
.title {
margin: 0 !important;
}
}
</style>