Commit d7eb7d5a by liuwange1

环境设备弹窗

parent b5aa137d
...@@ -109,18 +109,26 @@ export default { ...@@ -109,18 +109,26 @@ export default {
}); });
}, },
equipmentClickHandle(index) { equipmentClickHandle(index) {
this.activeIndex = index; if (index == this.activeIndex) {
this.$axios this.$axios.post("/osc/sendString", {
.get("/deviceInfo/getDevicePopup", { arg: 12,
deviceType: this.options[this.optionActiveIndex].key, name: "/SBTC_CLOSE_OSC",
deviceCode: this.equipmentList[index].deviceStandCode,
})
.then((e) => {
this.$axios.post("/osc/sendString", {
arg: JSON.stringify(e),
name: "/SBTC_OSC",
});
}); });
this.activeIndex = -1;
} else {
this.activeIndex = index;
this.$axios
.get("/deviceInfo/getDevicePopup", {
deviceType: this.options[this.optionActiveIndex].key,
deviceCode: this.equipmentList[index].deviceStandCode,
})
.then((e) => {
this.$axios.post("/osc/sendString", {
arg: JSON.stringify(e),
name: "/SBTC_OSC",
});
});
}
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment