|
|
|
@ -61,6 +61,9 @@ export class AuditRecordComponent implements OnInit {
|
|
|
|
|
this.getTypeList() |
|
|
|
|
await this.getAllOrganization() |
|
|
|
|
this.getRecordList() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.warningType() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ngOnDestroy(): void { |
|
|
|
@ -165,6 +168,25 @@ export class AuditRecordComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
warningTypesDetails |
|
|
|
|
warningTypesDetailsCopy |
|
|
|
|
//获得所有预警事件
|
|
|
|
|
warningType() { |
|
|
|
|
this.http.get('/api/services/app/Violation/GetAllList').subscribe((data: any) => { |
|
|
|
|
|
|
|
|
|
data.result = data.result.filter((item) => { |
|
|
|
|
return item.eventSystemName != '设备报废临期提醒' && item.eventSystemName != '设备维保临期提醒' && item.eventSystemName != '证照有效期办理提醒' && item.eventSystemName != '证照有效期临期提醒' && item.eventSystemName != '证照年检办理提醒' && item.eventSystemName != '证照年检临期提醒' |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.warningTypesDetails = JSON.parse(JSON.stringify(data.result)) |
|
|
|
|
this.warningTypesDetailsCopy = JSON.parse(JSON.stringify(data.result)) //原始数据备份
|
|
|
|
|
// console.log('所有预警事件', this.warningTypesDetailsCopy)
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
infoChange(e) { |
|
|
|
|
if (e == '0') { |
|
|
|
|
this.typeList = this.typeListOfStationData |
|
|
|
@ -176,6 +198,8 @@ export class AuditRecordComponent implements OnInit {
|
|
|
|
|
this.typeList = this.typeListOfFile |
|
|
|
|
} else if (e == '4') { |
|
|
|
|
this.typeList = this.typeListOfUsers |
|
|
|
|
} else if (e == '5') { |
|
|
|
|
this.typeList = [...this.warningTypesDetailsCopy] |
|
|
|
|
} else { |
|
|
|
|
this.typeList = [...this.typeListOfStationData, ...this.typeListOfUpdate, ...this.typeListOfFile] |
|
|
|
|
} |
|
|
|
|