瀏覽代碼

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

JX.LI 2 年之前
父節點
當前提交
fa9d8576d1
共有 1 個文件被更改,包括 9 次插入6 次删除
  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)
         }
       })