装置信息关闭loading

ds1.0
fanluyan 2 years ago
parent 7f033b5b80
commit ab36ced8f1

@ -102,7 +102,7 @@ export default {
this.timer = window.setInterval(() => { this.timer = window.setInterval(() => {
this.getNewListData(this.zztermid); this.getNewListData(this.zztermid);
this.i++; this.i++;
}, 10000); }, 5000);
}) })
.catch((err) => {}); .catch((err) => {});
}, },
@ -121,7 +121,7 @@ export default {
this.$message.success("装置信息已更新"); this.$message.success("装置信息已更新");
clearInterval(this.timer); clearInterval(this.timer);
this.loading = false; this.loading = false;
} else if (this.i > 9) { } else if (this.i > 5) {
this.i = 0; this.i = 0;
this.$message.warning("暂无响应,请稍后再试!"); this.$message.warning("暂无响应,请稍后再试!");
clearInterval(this.timer); clearInterval(this.timer);
@ -148,6 +148,7 @@ export default {
}, },
handleclose() { handleclose() {
this.isShow = false; this.isShow = false;
this.loading = false;
this.i = 0; this.i = 0;
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;

Loading…
Cancel
Save