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 }}