From 33f2d24fead7bd422ffe09b716b97d03e467699b Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 28 Jan 2023 13:52:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BC=98=E5=8C=96=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A4=B1=E8=B4=A5=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../condition-monitoring.component.ts | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/app/system-management/condition-monitoring/condition-monitoring.component.ts b/src/app/system-management/condition-monitoring/condition-monitoring.component.ts index 4a8d940..a641a0b 100644 --- a/src/app/system-management/condition-monitoring/condition-monitoring.component.ts +++ b/src/app/system-management/condition-monitoring/condition-monitoring.component.ts @@ -170,12 +170,16 @@ export class ConditionMonitoringComponent implements OnInit { this.http.patch('/api/EdgeDevices/Commands', body, { params: { command: type } }).subscribe({ next: (data: any) => { this.message.create('success', '通知边缘盒子成功,请过一段时间手动刷新尝试!'); - console.log(data) + let str = '更新失败列表
' if (data.failedItems.length != 0) { data.failedItems.forEach(element => { - this.message.create('info', element.detail); + str += element.detail + '
' + }); + this.message.create('info', str, { + nzDuration: 2000 }); } + this.setOfCheckedId.clear(); this.refreshCheckedStatus(); this.loading = null; @@ -204,11 +208,16 @@ export class ConditionMonitoringComponent implements OnInit { next: (data: any) => { resolve(data) this.message.create('success', '通知边缘盒子成功,请过一段时间手动刷新尝试!'); + let str = '更新失败列表
' if (data.failedItems.length != 0) { data.failedItems.forEach(element => { - this.message.create('info', element.detail); + str += element.detail + '
' + }); + this.message.create('info', str, { + nzDuration: 2000 }); } + this.setOfCheckedId.clear(); this.refreshCheckedStatus(); this.loading = null; @@ -274,9 +283,13 @@ export class ConditionMonitoringComponent implements OnInit { this.http.patch('/api/EdgeDevices/Commands/PushMonitorSettingsJson', body).subscribe({ next: (data: any) => { this.message.create('success', '通知边缘盒子成功,请过一段时间手动刷新尝试!'); + let str = '更新失败列表
' if (data.failedItems.length != 0) { data.failedItems.forEach(element => { - this.message.create('info', element.detail); + str += element.detail + '
' + }); + this.message.create('info', str, { + nzDuration: 2000 }); } this.setOfCheckedId.clear();