Commit 4070047e by liuwange1

通行

parent 9ee351fd
......@@ -106,7 +106,26 @@ export default {
});
},
equipmentClickHandle(index) {
this.activeIndex = index;
if (index == this.activeIndex) {
this.$axios.post("/osc/sendString", {
arg: 12,
name: "/SBTC_CLOSE_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