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();