Browse Source

风柜系统loading添加修复

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

22
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();

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

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

Loading…
Cancel
Save