|
@@ -1125,19 +1125,7 @@ export class HushijiandanComponent implements OnInit {
|
1125
|
1125
|
}
|
1126
|
1126
|
});
|
1127
|
1127
|
}
|
1128
|
|
- // 获取事件状态
|
1129
|
|
- incidentStateId = undefined;
|
1130
|
|
- incidentStateList = [];
|
1131
|
|
- getIncidentState() {
|
1132
|
|
- let postData = { type: "list", key: "wxincident_state" };
|
1133
|
|
- this.iLoading = true;
|
1134
|
|
- this.mainService.getDictionaryByITSM(postData).subscribe((data: any) => {
|
1135
|
|
- this.iLoading = false;
|
1136
|
|
- if (data.status == 200) {
|
1137
|
|
- this.incidentStateList = data.data || [];
|
1138
|
|
- }
|
1139
|
|
- });
|
1140
|
|
- }
|
|
1128
|
+
|
1141
|
1129
|
// 获取星级
|
1142
|
1130
|
degrees = [];
|
1143
|
1131
|
getDegrees() {
|
|
@@ -3384,7 +3372,7 @@ export class HushijiandanComponent implements OnInit {
|
3384
|
3372
|
this.getHistoryDrugsbag();
|
3385
|
3373
|
} else if (type === "bxlb" && this.isShowBx && this.coopBtns.repairList) {
|
3386
|
3374
|
this.getBxlb();
|
3387
|
|
- this.getIncidentState();
|
|
3375
|
+ // this.getIncidentState();
|
3388
|
3376
|
this.getDegrees();
|
3389
|
3377
|
} else if (type === "kjbx" && this.isShowBx && this.coopBtns.quickReportForRepair) {
|
3390
|
3378
|
// this.getQuickBxlb();
|
|
@@ -3598,6 +3586,19 @@ export class HushijiandanComponent implements OnInit {
|
3598
|
3586
|
this.historyDrugsbagListLength = data.totalNum || 0;
|
3599
|
3587
|
});
|
3600
|
3588
|
}
|
|
3589
|
+ // 获取事件状态
|
|
3590
|
+ incidentStateId = undefined;
|
|
3591
|
+ incidentStateList = [];
|
|
3592
|
+ // getIncidentState() {
|
|
3593
|
+ // let postData = { type: "list", key: "wxincident_state" };
|
|
3594
|
+ // this.iLoading = true;
|
|
3595
|
+ // this.mainService.getDictionaryByITSM(postData).subscribe((data: any) => {
|
|
3596
|
+ // this.iLoading = false;
|
|
3597
|
+ // if (data.status == 200) {
|
|
3598
|
+ // this.incidentStateList = data.data || [];
|
|
3599
|
+ // }
|
|
3600
|
+ // });
|
|
3601
|
+ // }
|
3601
|
3602
|
// 报修列表查询表格数据
|
3602
|
3603
|
bxlbList: any = [];
|
3603
|
3604
|
bxlbPageIndex: number = 1; //表格当前页码
|
|
@@ -3608,25 +3609,37 @@ export class HushijiandanComponent implements OnInit {
|
3608
|
3609
|
processing: number = 0; //处理中的数量
|
3609
|
3610
|
bxlbLoading = false;
|
3610
|
3611
|
getBxlb(idx?) {
|
3611
|
|
- if (idx) {
|
3612
|
|
- this.bxlbPageIndex = 1;
|
3613
|
|
- }
|
3614
|
|
- let current = JSON.parse(localStorage.getItem("user"));
|
3615
|
|
- this.bxlbLoading = true;
|
3616
|
|
- this.mainService
|
3617
|
|
- .listWxIncident({
|
3618
|
|
- deptId: current.user.dept.id,
|
3619
|
|
- // assignee: current.user.account,
|
3620
|
|
- state: this.incidentStateId?parseInt(this.incidentStateId):undefined,
|
3621
|
|
- idx: this.bxlbPageIndex - 1,
|
3622
|
|
- sum: this.bxlbPageSize,
|
3623
|
|
- })
|
3624
|
|
- .subscribe((data: any) => {
|
3625
|
|
- this.bxlbLoading = false;
|
3626
|
|
- this.bxlbList = data.data || [];
|
3627
|
|
- this.bxlbListLength = data.resultCount || 0;
|
3628
|
|
- this.processing = data.resultCount || 0;
|
3629
|
|
- });
|
|
3612
|
+ // 获取事件状态
|
|
3613
|
+ let postData = { type: "list", key: "wxincident_state" };
|
|
3614
|
+ this.iLoading = true;
|
|
3615
|
+ this.mainService.getDictionaryByITSM(postData).subscribe((data: any) => {
|
|
3616
|
+ this.iLoading = false;
|
|
3617
|
+ if (data.status == 200) {
|
|
3618
|
+ this.incidentStateList = data.data || [];
|
|
3619
|
+ let valueObj2 = this.incidentStateList.find(v => v.value == 2);
|
|
3620
|
+ this.incidentStateId = valueObj2 ? valueObj2.id : undefined;
|
|
3621
|
+ // 报修列表查询表格数据
|
|
3622
|
+ if (idx) {
|
|
3623
|
+ this.bxlbPageIndex = 1;
|
|
3624
|
+ }
|
|
3625
|
+ let current = JSON.parse(localStorage.getItem("user"));
|
|
3626
|
+ this.bxlbLoading = true;
|
|
3627
|
+ this.mainService
|
|
3628
|
+ .listWxIncident({
|
|
3629
|
+ deptId: current.user.dept.id,
|
|
3630
|
+ // assignee: current.user.account,
|
|
3631
|
+ state: this.incidentStateId ? this.incidentStateId : undefined,
|
|
3632
|
+ idx: this.bxlbPageIndex - 1,
|
|
3633
|
+ sum: this.bxlbPageSize,
|
|
3634
|
+ })
|
|
3635
|
+ .subscribe((data: any) => {
|
|
3636
|
+ this.bxlbLoading = false;
|
|
3637
|
+ this.bxlbList = data.data || [];
|
|
3638
|
+ this.bxlbListLength = data.resultCount || 0;
|
|
3639
|
+ this.processing = data.resultCount || 0;
|
|
3640
|
+ });
|
|
3641
|
+ }
|
|
3642
|
+ });
|
3630
|
3643
|
}
|
3631
|
3644
|
|
3632
|
3645
|
//快速报修列表
|