|
|
|
@ -77,11 +77,10 @@ export class VideoStreamingComponent implements OnInit {
|
|
|
|
|
ContainsChildren: true, |
|
|
|
|
OrganizationId: this.defaultOrId, |
|
|
|
|
PageNumber: this.PageNumber, |
|
|
|
|
PageSize: 10, |
|
|
|
|
HubConnectionState: this.validateForm.value.state |
|
|
|
|
PageSize: 10 |
|
|
|
|
} |
|
|
|
|
this.isLoading = true |
|
|
|
|
this.http.get('/api/EdgeDevices/Statuses', { params: params }).subscribe( |
|
|
|
|
this.http.get('/api/ErrorReports', { params: params }).subscribe( |
|
|
|
|
(data: any) => { |
|
|
|
|
console.log(data) |
|
|
|
|
this.isLoading = false |
|
|
|
@ -134,4 +133,38 @@ export class VideoStreamingComponent implements OnInit {
|
|
|
|
|
this.refreshCheckedStatus(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isVisible = false; |
|
|
|
|
showModal(): void { |
|
|
|
|
this.isVisible = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleOk(): void { |
|
|
|
|
console.log('Button ok clicked!'); |
|
|
|
|
this.isVisible = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handleCancel(): void { |
|
|
|
|
console.log('Button cancel clicked!'); |
|
|
|
|
this.isVisible = false; |
|
|
|
|
} |
|
|
|
|
dispose(data) { |
|
|
|
|
let body = { |
|
|
|
|
isHandled: true |
|
|
|
|
} |
|
|
|
|
this.http.put(`/api/ErrorReports/${data.id}`, body).subscribe( |
|
|
|
|
{ |
|
|
|
|
next: (data: any) => { |
|
|
|
|
this.message.create('success', '处置成功'); |
|
|
|
|
this.getConditionMonitoring() |
|
|
|
|
}, |
|
|
|
|
error: err => { |
|
|
|
|
this.message.create('error', '处置失败'); |
|
|
|
|
this.getConditionMonitoring() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|