From 37e2672f7c9d59621672444b03d3713580dc1364 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Wed, 30 Sep 2020 15:25:48 +0800
Subject: [PATCH] 添加名称地址
---
src/main/webapp/view/newmap.jsp | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index d411bc4..c042725 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/src/main/webapp/view/newmap.jsp
@@ -712,6 +712,7 @@
if ($("#close").html() == "CloseMq") {
ws.close();
}
+ moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
};
//������������
@@ -722,7 +723,6 @@
ws.onerror = function () {
$("#close").html("websocket������������");
};
-
}
})(jQuery);
@@ -839,9 +839,6 @@
} else if ("RefreshState" == methodName) {
var states = jsonData.states;
moralMap.refreshState(states);
- } else if ("DeliverSensors" == methodName) {
- $("#close").html(methodName);
- moralMap.showSensors(jsonData);
} else if ("CloseMq" == methodName) {
$("#close").html(methodName);
}
--
Gitblit v1.8.0