|
|
|
@ -310,7 +310,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
path:'ws://192.168.1.12/blade-datahttp/ws',//socket地址 |
|
|
|
// path:'ws://10.90.100.204/blade-websocket/ws?light',//socket地址 |
|
|
|
|
|
|
|
path:'ws://192.168.1.3/blade-websocket/ws?light_kk',//socket地址 |
|
|
|
build: "00", //楼 |
|
|
|
build: "00", //楼 |
|
|
|
floored: null, //楼层 |
|
|
|
floored: null, //楼层 |
|
|
|
controlAll: 2, //批量控制开关 |
|
|
|
controlAll: 2, //批量控制开关 |
|
|
|
@ -363,7 +364,7 @@ export default { |
|
|
|
handler(newval, olval) { |
|
|
|
handler(newval, olval) { |
|
|
|
if (newval) { |
|
|
|
if (newval) { |
|
|
|
// 模型恢复全部状态 |
|
|
|
// 模型恢复全部状态 |
|
|
|
bfHelper.resetStatus(2); |
|
|
|
// bfHelper.resetStatus(2); |
|
|
|
if (newval == 1) { |
|
|
|
if (newval == 1) { |
|
|
|
window.sessionStorage.setItem( |
|
|
|
window.sessionStorage.setItem( |
|
|
|
"camera", |
|
|
|
"camera", |
|
|
|
@ -458,6 +459,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
|
beforeDestroy() { |
|
|
|
if (this.socket) { |
|
|
|
if (this.socket) { |
|
|
|
|
|
|
|
console.log('close scoket'); |
|
|
|
this.socket.close(); |
|
|
|
this.socket.close(); |
|
|
|
this.socket = ""; |
|
|
|
this.socket = ""; |
|
|
|
} |
|
|
|
} |
|
|
|
|