From d7c3d57da5fbf81cd83996a4cf03536488a72740 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Wed, 8 Jun 2022 17:15:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E8=A7=86=E9=A2=91=E6=B5=81?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../video-streaming.component.html | 28 ++++++++++--- .../video-streaming.component.ts | 39 +++++++++++++++++-- 2 files changed, 59 insertions(+), 8 deletions(-) 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() + } + } + + ) + } }