|
@@ -231,6 +231,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
|
231
|
231
|
|
232
|
232
|
// 初始化故障工单列表
|
233
|
233
|
if(this.config.showOvertime == 1){
|
|
234
|
+ this.incidentList['2handler'].name = '待处理(不含延期处理)';
|
234
|
235
|
this.incidentList['3overtime'] = {
|
235
|
236
|
name: '延期处理',
|
236
|
237
|
list: [],
|
|
@@ -239,6 +240,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
|
239
|
240
|
this.getIncidentList('2handler');
|
240
|
241
|
this.getIncidentList('3overtime');
|
241
|
242
|
}else{
|
|
243
|
+ this.incidentList['2handler'].name = '待处理';
|
242
|
244
|
delete this.incidentList['3overtime'];
|
243
|
245
|
this.getIncidentList('1pending');
|
244
|
246
|
this.getIncidentList('2handler');
|
|
@@ -253,7 +255,7 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
|
253
|
255
|
pageSize = 0;
|
254
|
256
|
computedNum(){
|
255
|
257
|
let h = (document.querySelector('.lists_box') as HTMLElement).offsetHeight;
|
256
|
|
- this.pageSize = Math.floor((h / 117));
|
|
258
|
+ this.pageSize = Math.floor((h / 145));
|
257
|
259
|
}
|
258
|
260
|
|
259
|
261
|
// 刷新故障工单列表
|
|
@@ -299,18 +301,17 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
|
299
|
301
|
idx: 0,
|
300
|
302
|
sum: 99999,
|
301
|
303
|
incident: {
|
302
|
|
- assignee: this.tool.getCurrentUserId(),
|
303
|
304
|
deleteFlag: 0,
|
304
|
305
|
candidateGroups: this.config.groupIds ? this.config.groupIds.toString() : undefined,
|
305
|
306
|
dutyIds: this.config.deptIds.toString(),
|
306
|
|
- queryTask: 'all',
|
|
307
|
+ queryTask: 'queryAll',
|
307
|
308
|
},
|
308
|
309
|
};
|
309
|
310
|
if(type == '1pending'){
|
310
|
311
|
postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'pending').id;
|
311
|
312
|
}else if(type == '2handler'){
|
312
|
313
|
postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
|
313
|
|
- postData.incident.overtime = this.config.showOvertime;
|
|
314
|
+ postData.incident.overtime = this.config.showOvertime == 1 ? 0 : undefined;
|
314
|
315
|
}else if(type == '3overtime'){
|
315
|
316
|
postData.incident.statusId = this.incidentStatusList.find(v => v.value === 'handler').id;
|
316
|
317
|
postData.incident.overtime = 1;
|
|
@@ -424,4 +425,13 @@ export class RealtimeBroadcastComponent implements OnInit,AfterViewInit {
|
424
|
425
|
}
|
425
|
426
|
});
|
426
|
427
|
}
|
|
428
|
+
|
|
429
|
+ // 处理人+协同人
|
|
430
|
+ transferSynergetic(incidentData){
|
|
431
|
+ let str = incidentData.groupORHandlerUser || "";
|
|
432
|
+ if(incidentData.synergetic && incidentData.synergetic.length){
|
|
433
|
+ str += ',' + incidentData.synergetic.map(v => v.name).join(',');
|
|
434
|
+ }
|
|
435
|
+ return str;
|
|
436
|
+ }
|
427
|
437
|
}
|