Forráskód Böngészése

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

JX.LI 2 éve
szülő
commit
fa9d8576d1
1 módosított fájl, 9 hozzáadás és 6 törlés
  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)
         }
       })