From 8f636dc2b82cbb77d85332197ec93fe52d174c13 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Tue, 28 Apr 2020 15:28:58 +0800
Subject: [PATCH] update 走航查询表

---
 src/main/webapp/js/moralmap.js |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/main/webapp/js/moralmap.js b/src/main/webapp/js/moralmap.js
index 0ad00e8..c14d7cd 100644
--- a/src/main/webapp/js/moralmap.js
+++ b/src/main/webapp/js/moralmap.js
@@ -1052,17 +1052,16 @@
     var deviceStates;
     var monitorPointStates;
     moralMap.refreshState = function (states) {
-        if (!monitorPointStates) {
-            monitorPointStates = states;
-            deviceStates = [];
-            for (var i in states) {
-                var state = states[i];
-                for (var j in state.devices) {
-                    var device = state.devices[j];
-                    deviceStates.push(device);
-                }
+        monitorPointStates = states;
+        deviceStates = [];
+        for (var i in states) {
+            var state = states[i];
+            for (var j in state.devices) {
+                var device = state.devices[j];
+                deviceStates.push(device);
             }
         }
+        listView.refreshState(deviceStates);
         for (var i in states) {
             var state = states[i];
             var mpoint = moralMap.getMpoint(state.id);

--
Gitblit v1.8.0