Browse Source

风柜系统loading添加修复

meizhou
25604 2 weeks ago
parent
commit
850b7aa51b
  1. 20
      src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue
  2. 2
      src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue

20
src/views/aircAndWindc/awSysMonitor/components/normalMonitor.vue

@ -712,19 +712,23 @@ export default {
param: param, param: param,
}; };
console.log("操作参数", data); console.log("操作参数", data);
// loading
this.loading = true;
debugger
operationConrol([data]) operationConrol([data])
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$modal.msgSuccess("指令下发成功!"); this.$modal.msgSuccess("指令下发成功!");
// // loading // // loading
this.loading = true; // this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getWindList(this.currentId); this.getWindList(this.currentId);
}, 5000);
// // loading // // loading
this.loading = false; this.loading = false;
}, 5000);
} else { } else {
this.loading = false;
// this.$modal.msgError(""); // this.$modal.msgError("");
console.log("应该更新状态的"); console.log("应该更新状态的");
// ; // ;
@ -732,6 +736,8 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
// loading
this.loading = false;
console.log("请求发生错误,更新设备状态", error); console.log("请求发生错误,更新设备状态", error);
// ; // ;
this.getWindList(this.currentId); this.getWindList(this.currentId);
@ -912,13 +918,15 @@ export default {
policyId: id, policyId: id,
timeValue: param, timeValue: param,
}; };
console.log("操作参数", data); // console.log("", data);
// loading
this.loading = true;
undateTime(data) undateTime(data)
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$modal.msgSuccess("指令下发成功!"); this.$modal.msgSuccess("指令下发成功!");
// loading // loading
this.loading = true; // this.loading = true;
// ; // ;
setTimeout(() => { setTimeout(() => {
this.getPolicyList(); this.getPolicyList();
@ -926,6 +934,8 @@ export default {
this.loading = false; this.loading = false;
}, 500); }, 500);
} else { } else {
// loading
this.loading = false;
// this.$modal.msgError(""); // this.$modal.msgError("");
console.log("应该更新状态的"); console.log("应该更新状态的");
// ; // ;
@ -933,6 +943,8 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
// loading
this.loading = false;
console.log("请求发生错误,更新设备状态", error); console.log("请求发生错误,更新设备状态", error);
// ; // ;
this.getPolicyList(); this.getPolicyList();

2
src/views/boilerSys/hotWaterBoiler/hotWaterBoilerDetails.vue

@ -16,7 +16,7 @@
src="../../../assets/images/title-right.png" src="../../../assets/images/title-right.png"
alt="" alt=""
/> />
<div class="sys-title" @click="goSys">热水锅炉监测</div> <div class="sys-title" @click="goSys">采暖设备监测</div>
<!-- logo --> <!-- logo -->
<img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" /> <img src="../../../assets/images/logo-3.png" class="sys-logo" alt="" />
<div class="nowTime">{{ formattedDate }}</div> <div class="nowTime">{{ formattedDate }}</div>

Loading…
Cancel
Save