Bladeren bron

修改监控中心点击传感器不清除摄像头点位

JX.LI 2 jaren geleden
bovenliggende
commit
fa9d8576d1
1 gewijzigde bestanden met toevoegingen van 9 en 6 verwijderingen
  1. 9 6
      src/views/monitor.vue

+ 9 - 6
src/views/monitor.vue

@@ -500,10 +500,13 @@ export default {
             // longitude: "125.3333"
           }
           setTimeout(() => {
-            that.$refs.supermap.clearM(true)
-            that.$refs.supermap.clearM(false)
+            that.$refs.supermap.clearM()
+            that.$refs.supermap.clearMRadius()
             that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
           }, 3000)
+        }else{
+            that.$refs.supermap.clearM()
+            that.$refs.supermap.clearMRadius()
         }
       })
     },
@@ -593,14 +596,14 @@ export default {
             // longitude: "125.3333"
           }
           setTimeout(() => {
-            that.$refs.supermap.clearM(true)
-            that.$refs.supermap.clearM(false)
+            that.$refs.supermap.clearM()
+            that.$refs.supermap.clearMRadius()
             that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
           }, 3000)
         }else{
           setTimeout(() => {
-            that.$refs.supermap.clearM(true)
-            that.$refs.supermap.clearM(false)
+            that.$refs.supermap.clearM()
+            that.$refs.supermap.clearMRadius()
           }, 3000)
         }
       })