Browse Source

[完善]更新盒子关闭弹窗

非煤矿业企业安全风险监测预警系统
邵佳豪 2 years ago
parent
commit
261319cfe6
  1. 6
      src/app/system-management/condition-monitoring/condition-monitoring.component.ts

6
src/app/system-management/condition-monitoring/condition-monitoring.component.ts

@ -236,7 +236,7 @@ export class ConditionMonitoringComponent implements OnInit {
port: instance.validateForm.value.port, port: instance.validateForm.value.port,
maxRetries: instance.validateForm.value.maxRetries maxRetries: instance.validateForm.value.maxRetries
} }
await new Promise(resolve => { await new Promise((resolve, reject) => {
this.loading = 'file' this.loading = 'file'
this.http.patch('/api/EdgeDevices/Commands/PushMonitorSettingsJson', body).subscribe({ this.http.patch('/api/EdgeDevices/Commands/PushMonitorSettingsJson', body).subscribe({
next: (data: any) => { next: (data: any) => {
@ -249,11 +249,13 @@ export class ConditionMonitoringComponent implements OnInit {
} }
this.setOfCheckedId.clear(); this.setOfCheckedId.clear();
this.refreshCheckedStatus(); this.refreshCheckedStatus();
this.getConditionMonitoring() this.getConditionMonitoring()
this.loading = null; this.loading = null;
resolve(data)
return true
}, },
error: (err) => { error: (err) => {
reject(err)
this.loading = null; this.loading = null;
} }
}) })

Loading…
Cancel
Save