From a9c3fe66d59c504a18f6a8d0f639be99a68fb7d6 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Tue, 30 Jun 2020 15:00:47 +0800
Subject: [PATCH] update动态选择设备绑定

---
 src/main/webapp/view/newmap.jsp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index 205811d..d3e7710 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/src/main/webapp/view/newmap.jsp
@@ -677,7 +677,7 @@
         if (typeof (WebSocket) === "undefined") {
             alert("������������������������WebSocket");
         } else {
-            ws = new WebSocket('ws://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + accountId);
+            ws = new WebSocket('ws://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + accountId+'_'+regionCode);
             ws.onopen = function () {
             };
 
@@ -685,9 +685,9 @@
             ws.onmessage = function (msg) {
                 // $("#searchParam").val(JSON.parse(msg.data));
                 moralMap.refreshWindDir(JSON.parse(JSON.parse(msg.data)));
-                if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") {
+              /*  if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") {
                     moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
-                }
+                }*/
             };
 
             //������������
@@ -812,7 +812,7 @@
             var states = jsonData.states;
             moralMap.refreshState(states);
         } else if ("DeliverSensors" == methodName) {
-            // moralMap.showSensors(jsonData);
+            moralMap.showSensors(jsonData);
         }
     }
 </script>

--
Gitblit v1.8.0