|
|
@ -5,6 +5,7 @@
|
|
|
|
:visible.sync="isShow"
|
|
|
|
:visible.sync="isShow"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
width="60%"
|
|
|
|
width="60%"
|
|
|
|
|
|
|
|
@close="handleclose"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick" v-loading="loading">
|
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick" v-loading="loading">
|
|
|
|
<el-tab-pane label="查询实际参数" name="1">
|
|
|
|
<el-tab-pane label="查询实际参数" name="1">
|
|
|
@ -185,6 +186,7 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
timer: null,
|
|
|
|
timer: null,
|
|
|
|
|
|
|
|
i: 0,
|
|
|
|
seltermid: "", //装置id
|
|
|
|
seltermid: "", //装置id
|
|
|
|
selcmdId: "", //cmdId
|
|
|
|
selcmdId: "", //cmdId
|
|
|
|
requestId: "",
|
|
|
|
requestId: "",
|
|
|
@ -232,6 +234,7 @@ export default {
|
|
|
|
this.inquirenr();
|
|
|
|
this.inquirenr();
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
this.inquirenr();
|
|
|
|
this.inquirenr();
|
|
|
|
|
|
|
|
this.i++;
|
|
|
|
}, 10000);
|
|
|
|
}, 10000);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.code.msg);
|
|
|
|
this.$message.error(res.code.msg);
|
|
|
@ -249,12 +252,15 @@ export default {
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
if (res.code == 200) {
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
|
|
this.capturenr = res.data;
|
|
|
|
if (res.data.isNew == true) {
|
|
|
|
if (res.data.isNew == true) {
|
|
|
|
this.$message.success("查询已更新");
|
|
|
|
this.$message.success("查询已更新");
|
|
|
|
this.capturenr = res.data;
|
|
|
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
clearInterval(this.timer);
|
|
|
|
} else {
|
|
|
|
this.timer = null;
|
|
|
|
this.capturenr = res.data;
|
|
|
|
} else if(this.i > 9) {
|
|
|
|
|
|
|
|
this.$message.warning("暂无响应,请稍后再试!");
|
|
|
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
|
|
|
this.timer = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.code.msg);
|
|
|
|
this.$message.error(res.code.msg);
|
|
|
@ -291,6 +297,10 @@ export default {
|
|
|
|
hide() {
|
|
|
|
hide() {
|
|
|
|
this.isShow = false;
|
|
|
|
this.isShow = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleclose() {
|
|
|
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
|
|
|
this.timer = null;
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|