浏览代码

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

JX.LI 2 年之前
父节点
当前提交
3f79e78344
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/views/monitor.vue

+ 8 - 0
src/views/monitor.vue

@@ -414,11 +414,13 @@
               }
               setTimeout(() => {
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
                 that.$refs.supermap.setMarkers(markersList);
               }, 2000);
             } else {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 2000);
             }
           })
@@ -487,11 +489,13 @@
               }
               setTimeout(() => {
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
                 that.$refs.supermap.setMarkers(markersList);
               }, 2000);
             } else {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 2000);
             }
           })
@@ -703,11 +707,13 @@
               // longitude: "125.3333"
             }
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
             }, 3000)
           } else {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
             }, 1000)
           }
@@ -789,10 +795,12 @@
             }
             setTimeout(() => {
               that.$refs.supermap.clearMRadius()
+                that.$refs.supermap.clearM();
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
             }, 3000)
           } else {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
             }, 1000)
           }