From 850b7aa51b9f6e790430add4448dcd86ec6be7cd Mon Sep 17 00:00:00 2001 From: 25604 Date: Sun, 28 Sep 2025 11:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E6=9F=9C=E7=B3=BB=E7=BB=9Floading?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../awSysMonitor/components/normalMonitor.vue | 22 ++++++++++++++----- .../hotWaterBoiler/hotWaterBoilerDetails.vue | 2 +- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue b/src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue index 739af08..3a1693a 100644 --- a/src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue +++ b/src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue @@ -712,19 +712,23 @@ export default { param: param, }; console.log("操作参数", data); + // 开启 loading 效果 + this.loading = true; + debugger operationConrol([data]) .then((res) => { if (res.code == 200) { this.$modal.msgSuccess("指令下发成功!"); // // 开启 loading 效果 - this.loading = true; + // this.loading = true; // 更新所有设备状态; setTimeout(() => { this.getWindList(this.currentId); + // // 关闭 loading 效果 + this.loading = false; }, 5000); - // // 关闭 loading 效果 - this.loading = false; } else { + this.loading = false; // this.$modal.msgError("操作失败"); console.log("应该更新状态的"); // 更新所有设备状态; @@ -732,6 +736,8 @@ export default { } }) .catch((error) => { + // 开启 loading 效果 + this.loading = false; console.log("请求发生错误,更新设备状态", error); // 更新所有设备状态; this.getWindList(this.currentId); @@ -912,13 +918,15 @@ export default { policyId: id, timeValue: param, }; - console.log("操作参数", data); + // console.log("操作参数", data); + // 开启 loading 效果 + this.loading = true; undateTime(data) .then((res) => { if (res.code == 200) { this.$modal.msgSuccess("指令下发成功!"); // 开启 loading 效果 - this.loading = true; + // this.loading = true; // 更新所有设备状态; setTimeout(() => { this.getPolicyList(); @@ -926,6 +934,8 @@ export default { this.loading = false; }, 500); } else { + // 关闭 loading 效果 + this.loading = false; // this.$modal.msgError("操作失败"); console.log("应该更新状态的"); // 更新所有设备状态; @@ -933,6 +943,8 @@ export default { } }) .catch((error) => { + // 关闭 loading 效果 + this.loading = false; console.log("请求发生错误,更新设备状态", error); // 更新所有设备状态; this.getPolicyList(); diff --git a/src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue b/src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue index 25bab2a..5e787dd 100644 --- a/src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue +++ b/src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue @@ -16,7 +16,7 @@ src="../../../assets/images/title-right.png" alt="" /> -
热水锅炉监测
+
采暖设备监测
{{ formattedDate }}