From da1f5f7343539fca6148dd0c4f797f5cf01694a4 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 15 Oct 2020 14:46:32 +0800
Subject: [PATCH] 根据大屏客户端版本获取版本更新内容
---
src/main/webapp/view/newmap.jsp | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index 395d3fb..4302057 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/src/main/webapp/view/newmap.jsp
@@ -367,10 +367,9 @@
<body>
<div>
</div>
-<%--<textarea id="close" hidden></textarea>--%>
+<textarea id="close" hidden></textarea>
<div class="main_body">
- <%--<input id="button" type="button" value="������" onclick="getJs();">--%>
<div class="tools_box">
<div class="charts_btn">
</div>
@@ -705,24 +704,25 @@
//������������������
ws.onmessage = function (msg) {
// $("#searchParam").val(JSON.parse(msg.data));
+ //moralMap.getRoad(JSON.parse(JSON.parse(msg.data)),regionCode);
moralMap.refreshWindDir(JSON.parse(JSON.parse(msg.data)));
/* if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") {
moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
}*/
- /*if ($("#close").html() == "CloseMq") {
+ if ($("#close").html() == "CloseMq") {
ws.close();
- }*/
+ }
+ moralMap.showSensors(JSON.parse(JSON.parse(msg.data)));
};
//������������
ws.onclose = function () {
- //$("#close").html("websocket������������");
+ $("#close").html("websocket������������");
};
//���������������������
ws.onerror = function () {
- //$("#close").html("websocket������������");
+ $("#close").html("websocket������������");
};
-
}
})(jQuery);
@@ -839,12 +839,9 @@
} else if ("RefreshState" == methodName) {
var states = jsonData.states;
moralMap.refreshState(states);
- } else if ("DeliverSensors" == methodName) {
+ } else if ("CloseMq" == methodName) {
$("#close").html(methodName);
- moralMap.showSensors(jsonData);
- } /*else if ("CloseMq" == methodName) {
- $("#close").html(methodName);
- }*/
+ }
}
</script>
--
Gitblit v1.8.0