Commit f9bacc11 by liuwange1

更改

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