Quellcode durchsuchen

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

JX.LI vor 2 Jahren
Ursprung
Commit
fa9d8576d1
1 geänderte Dateien mit 9 neuen und 6 gelöschten Zeilen
  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)
         }
       })