Commit f9bacc11 by liuwange1

更改

parent 2b1c6658
......@@ -334,7 +334,7 @@ export default {
if ("WebSocket" in window) {
websocket = new WebSocket("ws://123.56.242.140:8089/ws/pad");
} else {
alert("该浏览器不支持websocket!");
// alert("该浏览器不支持websocket!");
}
websocket.onopen = function (event) {
......@@ -363,7 +363,7 @@ export default {
};
websocket.onerror = function () {
alert("websocket通信发生错误!");
// alert("websocket通信发生错误!");
};
window.onbeforeunload = function () {
......
......@@ -65,6 +65,12 @@ export default {
arg: this.listL[index].id,
name: "/LY",
});
if (index == 0) {
this.$emit("change", {
ldID: "",
lcID: "",
});
}
},
buildClickHandle2(index) {
if (this.activeIndex == 0 && this.activeIndex2 == 0) {
......
......@@ -6,7 +6,7 @@
<div class="title">模型楼栋楼层控制</div>
<div class="style-line"></div>
</div>
<buildList :osc="osc" @listenBuildChange="buildChange"></buildList>
<buildList :osc="osc" @change="buildChange"></buildList>
</div>
<div class="right">
<div class="title-box">
......@@ -142,7 +142,7 @@ export default {
return {
options: ["监控摄像头", "AI智能摄像头"],
optionKeys: ["CAMERA_MONITOR", "CAMERA_AI"],
optionActiveIndex: -1,
optionActiveIndex: 0,
osc: 11,
oscName: "/EZ_AF",
roadList: [],
......@@ -167,6 +167,7 @@ export default {
created() {
this.init();
this.getInspectionLineList();
this.getMonitorList();
},
methods: {
init() {
......@@ -240,8 +241,8 @@ export default {
},
buildChange(e) {
this.ids = e;
this.params.buildingCode = e.pid;
this.params.floorCode = e.id;
this.params.buildingCode = e.ldID;
this.params.floorCode = e.lcID;
this.getMonitorList();
},
getMonitorList() {
......
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