diff --git a/src/app/system-management/video-streaming/video-streaming.component.html b/src/app/system-management/video-streaming/video-streaming.component.html index 5c642df..38d7f86 100644 --- a/src/app/system-management/video-streaming/video-streaming.component.html +++ b/src/app/system-management/video-streaming/video-streaming.component.html @@ -61,7 +61,7 @@ - IP + 所属油站 设备状态 报告时间 @@ -73,7 +73,7 @@ - {{ data.hostIPAddress }} + {{ data.gasStationName }} @@ -83,9 +83,27 @@ 在线 - 报告时间 - 详情 - 处置 + +

+ 开始时间:{{data.beginTime ? (data.beginTime | date:"yyyy-MM-dd HH:mm:ss") + :'/'}} +

+

+ 结束时间:{{data.endTime ? (data.endTime | date:"yyyy-MM-dd HH:mm:ss") :'/'}} +

+ + + 详情 + + + {{data.detail}} + + + + + 处置 + diff --git a/src/app/system-management/video-streaming/video-streaming.component.ts b/src/app/system-management/video-streaming/video-streaming.component.ts index e58cb2a..3920434 100644 --- a/src/app/system-management/video-streaming/video-streaming.component.ts +++ b/src/app/system-management/video-streaming/video-streaming.component.ts @@ -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() + } + } + + ) + } }