From 4c872cea75d5b3c3832f0f0796ba727e8f91168d Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Wed, 21 Oct 2020 15:03:50 +0800
Subject: [PATCH] 增加获取单台设备五分钟平均值以及沧州环保局下属设备只显示十个参数
---
src/main/webapp/view/newmap.jsp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp
index d411bc4..4302057 100644
--- a/src/main/webapp/view/newmap.jsp
+++ b/src/main/webapp/view/newmap.jsp
@@ -370,7 +370,6 @@
<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,6 +704,7 @@
//������������������
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)));
@@ -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