|
|
|
@ -35,19 +35,28 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
isMisinformationLoading = false |
|
|
|
|
//推送
|
|
|
|
|
push() { |
|
|
|
|
this.isPushLoading = true |
|
|
|
|
let body = { |
|
|
|
|
id: this.data.id, |
|
|
|
|
positive: true |
|
|
|
|
} |
|
|
|
|
this.http.post('/api/services/app/ViolateRecordVerification/VerifyViolateRecord', body).subscribe(data => { |
|
|
|
|
this.message.create('success', '处置成功!'); |
|
|
|
|
this.isPushLoading = false |
|
|
|
|
this.initialModal.triggerOk() |
|
|
|
|
}, err => { |
|
|
|
|
this.message.create('error', '处置失败!请联系管理员'); |
|
|
|
|
this.isPushLoading = false |
|
|
|
|
}) |
|
|
|
|
this.modal.confirm({ |
|
|
|
|
nzTitle: '确定推送该预警吗?', |
|
|
|
|
nzOkText: '确定', |
|
|
|
|
nzOkType: 'danger', |
|
|
|
|
nzOnOk: () => { |
|
|
|
|
this.isPushLoading = true |
|
|
|
|
let body = { |
|
|
|
|
id: this.data.id, |
|
|
|
|
positive: true |
|
|
|
|
} |
|
|
|
|
this.http.post('/api/services/app/ViolateRecordVerification/VerifyViolateRecord', body).subscribe(data => { |
|
|
|
|
this.message.create('success', '处置成功!'); |
|
|
|
|
this.isPushLoading = false |
|
|
|
|
this.initialModal.triggerOk() |
|
|
|
|
}, err => { |
|
|
|
|
this.message.create('error', '处置失败!请联系管理员'); |
|
|
|
|
this.isPushLoading = false |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
nzCancelText: '取消', |
|
|
|
|
nzOnCancel: () => console.log('Cancel') |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
//误报
|
|
|
|
|
misinformation() { |
|
|
|
|