From 717c617f8f79387ac08c29a24647ea1f4be6a7b9 Mon Sep 17 00:00:00 2001
From: ZhuDongming <773644075@qq.com>
Date: Thu, 30 Apr 2020 08:42:29 +0800
Subject: [PATCH] update维保改为离线

---
 src/main/webapp/js/moralmap.js |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/js/moralmap.js b/src/main/webapp/js/moralmap.js
index 0ad00e8..b0ed81a 100644
--- a/src/main/webapp/js/moralmap.js
+++ b/src/main/webapp/js/moralmap.js
@@ -46,7 +46,8 @@
     moralMap.mapInit = function () {
         var defaultParam = {
             minZoom: 12,
-            maxZoom: 20
+            maxZoom: 20,
+            enableMapClick: false
         };
         if (!!arguments[1]) {
             $.extend(defaultParam, arguments[1]);
@@ -414,7 +415,7 @@
                     break;
                 case 4:
                     state = 'state04';
-                    stateName = '������';
+                    stateName = '������';
                     break;
             }
             return {
@@ -1052,17 +1053,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