|
|
|
@ -18,17 +18,20 @@ export class WarningEventsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
warningList: any |
|
|
|
|
getWarningList() { |
|
|
|
|
this.isLoading = true |
|
|
|
|
this.http.get('/api/services/app/Violation/GetStationViolationConfig', { |
|
|
|
|
params: { |
|
|
|
|
organizationId: this.data.id |
|
|
|
|
} |
|
|
|
|
}).subscribe((data: any) => { |
|
|
|
|
|
|
|
|
|
this.isLoading = false |
|
|
|
|
data.result.forEach(element => { |
|
|
|
|
element.enable = !element.disabled |
|
|
|
|
}); |
|
|
|
|
this.warningList = data.result |
|
|
|
|
// console.log('预警列表', this.warningList)
|
|
|
|
|
}, err => { |
|
|
|
|
this.isLoading = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|