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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
| <template>
| <div>
| <!-- 内容 -->
| <div class="content-wrap">
| <!-- 事故快报审核 -->
| <div class="column">
| <!-- 标题 -->
| <v-title-home content="服务质量" width="100%" :showDateFlag="false">
|
| </v-title-home>
| <!-- banner -->
| <img src="../../../assets/safety/banner1.png" class="mt16" >
| <!-- <div class="layer layer-1"></div> -->
| <!-- 操作栏 -->
| <div class="action-bar g-table-filter">
| <el-select
| placeholder="查看类型"
| style="width: 120px"
| @change="loadDataList"
| v-model="filter.category"
| class="mr15"
| clearable
| >
| <el-option value="">全部</el-option>
| <el-option
| v-for="(item, index) in categoryType"
| :key="index"
| :label="item"
| :value="index"
| ></el-option>
| </el-select>
| <el-select
| placeholder="查看工单状态"
| style="width: 120px"
| @change="loadDataList"
| v-model="filter.workOrderType"
| clearable
| >
| <el-option value="">全部状态</el-option>
| <el-option
| v-for="(item, index) in workOrderObj"
| :key="index"
| :label="item"
| :value="index"
| ></el-option>
| </el-select>
| <div
| @click="$to('/safetyQualityList', 8)"
| class="action-item blue pointer"
| >
| 查看全部
| </div>
| </div>
| <!-- 列表 -->
| <perfect-scrollbar>
| <div class="g-table">
| <el-table
| :data="auditList"
| stripe
| v-loading="false"
| header-row-class-name="table-header"
| highlight-current-row
| style="width: 100%"
| >
| <el-table-column
| prop=""
| label="类型"
| width="100"
| align="center"
| >
| <template slot-scope="scope">
| <div class="ml20">{{categoryType[+scope.row.category] || ''}}</div>
| </template>
| </el-table-column>
| <el-table-column
| prop=""
| label="来源"
| align="center"
| >
| <template slot-scope="scope">
| <div>{{sourceType[+scope.row.source] || ''}}</div>
| </template>
| </el-table-column>
| <el-table-column
| prop=""
| label="状态"
| align="center"
| >
| <template slot-scope="scope">
| <div>{{workOrderObj[+scope.row.workOrderType]}}</div>
| </template>
| </el-table-column>
| <el-table-column
| prop="createTime"
| label="创建时间"
| align="center"
| />
| <el-table-column
| prop=""
| label="操作"
| width="100"
| align="center"
| class="mr20"
| >
| <template slot-scope="scope">
| <div class="mr20">
| <div class="_table-btn" @click="handleDetail(scope.row)">查看详情</div>
| </div>
| </template>
| </el-table-column>
| </el-table>
| </div>
| </perfect-scrollbar>
| <div class="g-pagination">
| <el-pagination
| layout="total, prev, pager, next"
| :current-page="pageNum"
| :page-size="pageSize"
| :total="total"
| background
| prev-text="上一页"
| next-text="下一页"
| @current-change="pageChange"
| ></el-pagination>
|
| </div>
| </div>
| </div>
| </div>
| </template>
| <script>
|
| import {PerfectScrollbar} from "vue2-perfect-scrollbar";
| import moment from 'moment'
| export default {
| name: "safety",
| components: {
| PerfectScrollbar
| },
| data() {
| return {
| auditList: [],
| pageSize: 20,
| pageNum: 1,
| total: 1, // 总页数
| filter: {
| workOrderType: '',
| category: ''
| },
| workOrderObj: {
| 1: '完结',
| 2: '未处理'
| },
| sourceType: {
| 1: '来电',
| 2: '来信',
| 3: '来访',
| 4: '媒体',
| 5: '稽查',
| 6: '咨询',
| 7: '其他'
| },
| categoryType: {
| 1: '市名咨询',
| 2: '求助',
| 3: '建议',
| 4: '投诉',
| 5: '表扬感谢',
| 6: '其他'
| }
| };
| },
| created() {
| this.loadDataList();
| },
| activated() {
| this.loadDataList();
| },
| methods: {
| pageChange(page) {
| this.pageNum = page;
| this.loadDataList();
| },
| handleDetail(row) {
| this.$router.push(`/safetyQualityDetail?id=${row.id}`)
| },
| loadDataList() {
| this.$axios
| .get(this.$Interface.safety.pageServiceQuality, {
| params: {
| limit: this.pageSize,
| page: this.pageNum,
| ...this.filter,
| },
| })
| .then((res) => {
| this.auditList = res.data.list;
| this.total = Number(res.data.total);
| });
| },
| getTime(value) {
| return moment(value).format('yyyy-MM-DD HH:mm:ss')
| }
| },
| mounted() {
| },
| };
| </script>
| <style scoped lang="less">
| </style>
|
|