Browse Source

Merge remote-tracking branch 'origin/visu_water' into visu_water

王通 2 years ago
parent
commit
8819c723c1
2 changed files with 9 additions and 19 deletions
  1. 4 11
      src/components/TVWall.vue
  2. 5 8
      src/views/eventdetailsdialog.vue

+ 4 - 11
src/components/TVWall.vue

@@ -387,17 +387,10 @@ export default {
         }
         }
       ]
       ]
       this.setPos()
       this.setPos()
-      _this.ws.createCtrl(params).then(res => {
-        this.customizeTree(tvListJson)
-      }).catch(e => {
-        console.log(e)
-      })
-      _this.ws.on('createCtrlResult', (res) => {
-        this.customizeTree(tvListJson)
-        _this.ws.on('createCtrlResult', (res) => {
-          this.customizeTree(tvListJson)
-        })
-      })
+      this.customizeTree(tvListJson);
+      setTimeout(function () {
+        _this.ws.createCtrl(params);
+      }, 3000);
     },
     },
     setPos() {
     setPos() {
       let target = document.getElementById(this.domId)
       let target = document.getElementById(this.domId)

+ 5 - 8
src/views/eventdetailsdialog.vue

@@ -1429,10 +1429,7 @@ export default {
                 click: '',
                 click: '',
                 parameter: '',
                 parameter: '',
                 keepBindPopup: false,
                 keepBindPopup: false,
-                isAggregation: false
-              }
-              if (res.data.length > 50) {
-                markersMap.isAggregation = true
+                isAggregation: true
               }
               }
               if (type == 'qsk') {
               if (type == 'qsk') {
                 markersMap.icon = 'sj-icon-waterintake'
                 markersMap.icon = 'sj-icon-waterintake'
@@ -1930,7 +1927,7 @@ export default {
           click: '',
           click: '',
           parameter: '',
           parameter: '',
           keepBindPopup: false,
           keepBindPopup: false,
-          isAggregation: false,
+          isAggregation: true,
           radius: 0
           radius: 0
         }
         }
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -1968,7 +1965,7 @@ export default {
             click: 'preview',
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             keepBindPopup: false,
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
             radius: 0
           }
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +
           markersMap.bindPopupHtml = '<div class="map-tip">' +
@@ -2016,7 +2013,7 @@ export default {
           click: '',
           click: '',
           parameter: '',
           parameter: '',
           keepBindPopup: false,
           keepBindPopup: false,
-          isAggregation: false,
+          isAggregation: true,
           radius: 0
           radius: 0
         }
         }
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
         if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
@@ -2056,7 +2053,7 @@ export default {
             click: 'preview',
             click: 'preview',
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory},
             keepBindPopup: false,
             keepBindPopup: false,
-            isAggregation: false,
+            isAggregation: true,
             radius: 0
             radius: 0
           }
           }
           markersMap.bindPopupHtml = '<div class="map-tip">' +
           markersMap.bindPopupHtml = '<div class="map-tip">' +