Browse Source

修系统监控下发指令时延迟两秒更新数据

gh_ers
selia-zx 3 weeks ago
parent
commit
e18f0fbf65
  1. 7
      src/views/heatRecoverySys/deviceMonitor/monitorCenter.vue

7
src/views/heatRecoverySys/deviceMonitor/monitorCenter.vue

@ -665,8 +665,13 @@ export default {
const result = await operationConrol([params]); const result = await operationConrol([params]);
if (result.code == 200) { if (result.code == 200) {
this.$modal.msgSuccess("指令下发成功!"); this.$modal.msgSuccess("指令下发成功!");
// loading
this.loading = true;
setTimeout(() => {
this.getMonitorList(); this.getMonitorList();
this.getMonitorTotalData(); this.getMonitorTotalData();
this.loading = false;
}, 2000);
} }
// //
this.currentOpening = Number(value); this.currentOpening = Number(value);
@ -1312,7 +1317,7 @@ export default {
border: 0.01rem dashed #646866; border: 0.01rem dashed #646866;
} }
.h4 { .h4 {
top: 5.0rem; top: 5rem;
left: 2rem; left: 2rem;
color: #cecece; color: #cecece;
font-size: 0.16rem; font-size: 0.16rem;

Loading…
Cancel
Save