diff --git a/src/views/iot/project/profileV2/DeviceManage/EDeviceChildren.vue b/src/views/iot/project/profileV2/DeviceManage/EDeviceChildren.vue index 2e7ee01d..86bda6ab 100644 --- a/src/views/iot/project/profileV2/DeviceManage/EDeviceChildren.vue +++ b/src/views/iot/project/profileV2/DeviceManage/EDeviceChildren.vue @@ -261,10 +261,10 @@ export default { ).then((res) => { this.tableList = res.rows; this.deviceTotal = res.total; - if (this.stompClient) { - this.closeSocket(); - } - this.connection(); + // if (this.stompClient) { + // this.closeSocket(); + // } + // this.connection(); }); }, // 动态表格 返回的 勾选数据 @@ -364,9 +364,9 @@ export default { this.stompClient.onmessage = this.socket_message; this.stompClient.onclose = this.socket_onclose; }, - socket_message(evt) { - console.log("wsljcg:=", evt); - const data = JSON.parse(evt.data); + socket_message(data) { + console.log("wsljcg:=", data); + // const data = JSON.parse(evt.data); // this.actualEnergyCensus = data.params || {}; console.log("socket-message:", data); this.handleDeviceInfo(data); diff --git a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue index 5388336f..d147c431 100644 --- a/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue +++ b/src/views/iot/project/profileV2/DeviceManage/EDeviceTable.vue @@ -181,6 +181,7 @@