Bladeren bron

按钮过滤

miaofuhao 3 jaren geleden
bovenliggende
commit
44baabdf1b

+ 1 - 361
anyangWebAPP/config/buttons.config.js

@@ -1,361 +1 @@
1
-export default {
2
-	1: {
3
-		id: 1,
4
-		text: "查看",
5
-		annotation:	"查看",
6
-		eventName: "viewBtn",
7
-	},
8
-	2: {
9
-		id: 2,
10
-		text: "编辑",
11
-		annotation:	"编辑",
12
-		eventName: "editBtn",
13
-	},
14
-	3: {
15
-		id: 3,
16
-		text: "删除",
17
-		annotation:	"删除",
18
-		eventName: "removeBtn",
19
-	},
20
-	4: {
21
-		id: 4,
22
-		text: "提交",
23
-		annotation:	"提交",
24
-		eventName: "submitBtn",
25
-	},
26
-	5: {
27
-		id: 5,
28
-		text: "交办",
29
-		annotation:	"交办",
30
-		eventName: "assignBtn",
31
-	},
32
-	6: {
33
-		id: 6,
34
-		text: "领导批示",
35
-		annotation:	"领导批示",
36
-		eventName: "leadInstructBtn",
37
-	},
38
-	7: {
39
-		id: 7,
40
-		text: "市长批示",
41
-		annotation:	"市长批示",
42
-		eventName: "mayorInstrucBtn",
43
-	},
44
-	8: {
45
-		id: 8,
46
-		text: "督办",
47
-		annotation:	"督办",
48
-		eventName: "superviseBtn",
49
-	},
50
-	9: {
51
-		id: 9,
52
-		text: "监察",
53
-		annotation:	"监察",
54
-		eventName: "monitorBtn",
55
-	},
56
-	10: {
57
-		id: 10,
58
-		text: "收回",
59
-		annotation:	"收回",
60
-		eventName: "takeBack",
61
-	},
62
-
63
-	11: {
64
-		id: 11,
65
-		text: "查收",
66
-		annotation:	"查收",
67
-		eventName: "checkBtn",
68
-	},
69
-	12: {
70
-		id: 12,
71
-		text: "退回申请",
72
-		annotation:	"退回申请",
73
-		eventName: "returnApplica",
74
-	},
75
-	13: {
76
-		id: 13,
77
-		text: "处理",
78
-		annotation:	"处理",
79
-		eventName: "disposeBtn",
80
-	},
81
-	14: {
82
-		id: 14,
83
-		text: "申请延时",
84
-		annotation:	"申请延时",
85
-		eventName: "applyDelayBtn",
86
-	},
87
-	15: {
88
-		id: 15,
89
-		text: "退回审核",
90
-		annotation:	"退回审核",
91
-		eventName: "backAuditBtn",
92
-	},
93
-	16: {
94
-		id: 16,
95
-		text: "回访",
96
-		annotation:	"回访",
97
-		eventName: "callbackBtn",
98
-	},
99
-	17: {
100
-		id: 17,
101
-		text: "延时审核",
102
-		annotation:	"延时审核",
103
-		eventName: "delayAuditBtn",
104
-	},
105
-	18: {
106
-		id: 18,
107
-		text: "重办",
108
-		annotation:	"重办",
109
-		eventName: "severelyPunishBtn",
110
-	},
111
-	19: {
112
-		id: 19,
113
-		text: "结案",
114
-		annotation:	"结案",
115
-		eventName: "settleLawsuitBtn",
116
-	},
117
-	20: {
118
-		id: 20,
119
-		text: "导出",
120
-		annotation:	"导出",
121
-		eventName: "exportBtn",
122
-	},
123
-
124
-	21: {
125
-		id: 21,
126
-		text: "回退",
127
-		annotation:	"回退",
128
-		eventName: "rollbackBtn",
129
-	},
130
-	22: {
131
-		id: 22,
132
-		text: "强制结案",
133
-		annotation:	"强制结案",
134
-		eventName: "compulsorySettlementBtn",
135
-	},
136
-	23: {
137
-		id: 23,
138
-		text: "派单",
139
-		annotation:	"派单",
140
-		eventName: "sendOrdersBtn",
141
-	},
142
-	24: {
143
-		id: 24,
144
-		text: "处理审核",
145
-		annotation:	"处理审核",
146
-		eventName: "processAuditBtn",
147
-	},
148
-	25: {
149
-		id: 25,
150
-		text: "签收",
151
-		annotation:	"签收",
152
-		eventName: "signForBtn",
153
-	},
154
-	26: {
155
-		id: 26,
156
-		text: "拒收",
157
-		annotation:	"拒收",
158
-		eventName: "rejectionBtn",
159
-	},
160
-	27: {
161
-		id: 27,
162
-		text: "撤单",
163
-		annotation:	"撤单",
164
-		eventName: "cancellationsBtn",
165
-	},
166
-	28: {
167
-		id: 28,
168
-		text: "审核",
169
-		annotation:	"审核",
170
-		eventName: "auditBtn",
171
-	},
172
-	29: {
173
-		id: 29,
174
-		text: "转督办",
175
-		annotation:	"转督办",
176
-		eventName: "turnSuperviseBtn",
177
-	},
178
-	30: {
179
-		id: 30,
180
-		text: "不督办",
181
-		annotation:	"不督办",
182
-		eventName: "noSuperviseBtn",
183
-	},
184
-
185
-	31: {
186
-		id: 31,
187
-		text: "提交重办",
188
-		annotation:	"提交重办",
189
-		eventName: "submitRecreateBtn",
190
-	},
191
-	32: {
192
-		id: 32,
193
-		text: "驳回重办",
194
-		annotation:	"驳回重办",
195
-		eventName: "rejectedRecreateBtn",
196
-	},
197
-	33: {
198
-		id: 33,
199
-		text: "履职界定",
200
-		annotation:	"履职界定",
201
-		eventName: "sinceDefinitionBtn",
202
-	},
203
-	34: {
204
-		id: 34,
205
-		text: "界定审核",
206
-		annotation:	"界定审核",
207
-		eventName: "superviseBtn",
208
-	},
209
-	35: {
210
-		id: 35,
211
-		text: "拒绝",
212
-		annotation:	"拒绝",
213
-		eventName: "defineAudit",
214
-	},
215
-	36: {
216
-		id: 36,
217
-		text: "退回",
218
-		annotation:	"退回",
219
-		eventName: "sendBackFirstBtn",
220
-	},
221
-	37: {
222
-		id: 37,
223
-		text: "催办",
224
-		annotation:	"催办",
225
-		eventName: "superviseBtn",
226
-	},
227
-	38: {
228
-		id: 38,
229
-		text: "退回",
230
-		annotation:	"退回",
231
-		eventName: "sendBackSecondBtn",
232
-	},
233
-	39: {
234
-		id: 39,
235
-		text: "退回",
236
-		annotation:	"退回",
237
-		eventName: "sendBackThirdBtn",
238
-	},
239
-	30: {
240
-		id: 30,
241
-		text: "修改",
242
-		annotation:	"修改",
243
-		eventName: "modifyBtn",
244
-	},
245
-
246
-	41: {
247
-		id: 41,
248
-		text: "查收",
249
-		annotation:	"督办查收",
250
-		eventName: "superviseCheckBtn",
251
-	},
252
-	42: {
253
-		id: 42,
254
-		text: "审核通过",
255
-		annotation:	"督办审核通过",
256
-		eventName: "superviseAuditBtn",
257
-	},
258
-	43: {
259
-		id: 43,
260
-		text: "审核拒绝",
261
-		annotation:	"督办审核拒绝",
262
-		eventName: "superviseAuditRefusedBtn",
263
-	},
264
-	44: {
265
-		id: 44,
266
-		text: "签收",
267
-		annotation:	"省平台签收",
268
-		eventName: "provinceSignForBtn",
269
-	},
270
-	45: {
271
-		id: 45,
272
-		text: "退回",
273
-		annotation:	"省平台退回",
274
-		eventName: "provinceSendBackBtn",
275
-	},
276
-	46: {
277
-		id: 46,
278
-		text: "申请延时退回",
279
-		annotation:	"省平台申请延时退回",
280
-		eventName: "provinceApplyDelayBtn",
281
-	},
282
-	47: {
283
-		id: 47,
284
-		text: "省平台反馈",
285
-		annotation:	"省平台反馈",
286
-		eventName: "provinceFeedbackBtn",
287
-	},
288
-	48: {
289
-		id: 48,
290
-		text: "操作",
291
-		annotation:	"操作",
292
-		eventName: "operationBtn",
293
-	},
294
-	49: {
295
-		id: 49,
296
-		text: "上报",
297
-		annotation:	"服务工单上报",
298
-		eventName: "reportedBtn",
299
-	},
300
-	50: {
301
-		id: 50,
302
-		text: "已办未果",
303
-		annotation:	"已办未果",
304
-		eventName: "unsuccessfulBtn",
305
-	},
306
-
307
-	51: {
308
-		id: 51,
309
-		text: "审核通过",
310
-		annotation:	"审核通过",
311
-		eventName: "approvedBtn",
312
-	},
313
-	52: {
314
-		id: 52,
315
-		text: "审核不通过",
316
-		annotation:	"审核不通过",
317
-		eventName: "auditFailedBtn",
318
-	},
319
-	53: {
320
-		id: 53,
321
-		text: "审核通过转办",
322
-		annotation:	"审核通过转办",
323
-		eventName: "auditPassTurnBtn",
324
-	},
325
-	54: {
326
-		id: 54,
327
-		text: "审核通过",
328
-		annotation:	"多媒体审核通过",
329
-		eventName: "auditMultimediaThroughBtn",
330
-	},
331
-	55: {
332
-		id: 55,
333
-		text: "审核不通过",
334
-		annotation:	"多媒体审核不通过",
335
-		eventName: "auditMultimediaNotThroughBtn",
336
-	},
337
-	56: {
338
-		id: 56,
339
-		text: "回复",
340
-		annotation:	"多媒体回复",
341
-		eventName: "replyMultimediaBtn",
342
-	},
343
-	57: {
344
-		id: 57,
345
-		text: "审核",
346
-		annotation:	"多媒体审核",
347
-		eventName: "auditAllBtn",
348
-	},
349
-	58: {
350
-		id: 58,
351
-		text: "审核",
352
-		annotation:	"审核",
353
-		eventName: "auditWorkordeBtn",
354
-	},
355
-	59: {
356
-		id: 59,
357
-		text: "追加回复",
358
-		annotation:	"追加回复",
359
-		eventName: "additionalReplyBtn",
360
-	},
361
-}
1
+export default [3,4,5,10,11,12,13,14,15,17,18,21,22,23,24,25,26,27,28,29,31,32,38,39,47,48,49,51,52,53,57]

+ 6 - 9
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/workOrderDetail.vue

@@ -111,15 +111,12 @@
111 111
 							this.detailContentData = data.data[0];
112 112
 							let btnData = data.btndata;
113 113
 							if (btnData.length > 0) {
114
-								this.orderButtonData = btnData
115
-								// btnData.forEach((element, index) => {
116
-								// 	let btn = this.$mButtonConfig[element.key];
117
-								// 	console.log(btn)
118
-								// 	if (btn != undefined) {
119
-								// 		this.workOrderButton.push(btn);
120
-								// 	}
121
-								// 	this.orderButtonData = this.workOrderButton
122
-								// });
114
+								btnData.forEach((element, index) => {
115
+									if (this.$mButtonConfig.indexOf(element.key)!=-1) {
116
+										this.orderButtonData.push(element)
117
+									}
118
+									
119
+								});
123 120
 							}
124 121
 						} else if (type === "9") {
125 122
 							this.handleProcessListData = data;