Commit 2304c433 by liuwange1

安防设备弹窗

parent d7eb7d5a
......@@ -140,6 +140,7 @@ export default {
data() {
return {
options: ["监控摄像头", "AI智能摄像头"],
optionKeys: ["CAMERA_MONITOR", "CAMERA_AI"],
optionActiveIndex: 0,
osc: 11,
oscName: "/EZ_AF",
......@@ -227,7 +228,27 @@ export default {
});
},
monitorChange(index) {
// this.monitorIndex = index;
if (index == this.activeIndex) {
this.$axios.post("/osc/sendString", {
arg: 12,
name: "/SBTC_CLOSE_OSC",
});
this.monitorIndex = -1;
} else {
this.monitorIndex = index;
this.$axios
.get("/deviceInfo/getDevicePopup", {
deviceType: this.optionKeys[this.optionActiveIndex],
deviceCode: this.optionsList[index].monitorCode,
})
.then((e) => {
this.$axios.post("/osc/sendString", {
arg: JSON.stringify(e),
name: "/SBTC_OSC",
});
});
}
},
getInspectionLineList() {
this.$axios.get("/smartSecurity/getInspectionLineList", {}).then((e) => {
......
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