Browse Source

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

JX.LI 2 years ago
parent
commit
199a1c4ba6
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/monitor.vue

+ 8 - 0
src/views/monitor.vue

@@ -410,11 +410,13 @@
               }
               }
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
                 that.$refs.supermap.setMarkers(markersList);
                 that.$refs.supermap.setMarkers(markersList);
               }, 3000);
               }, 3000);
             } else {
             } else {
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 3000);
               }, 3000);
             }
             }
           })
           })
@@ -482,11 +484,13 @@
               }
               }
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
                 that.$refs.supermap.setMarkers(markersList);
                 that.$refs.supermap.setMarkers(markersList);
               }, 3000);
               }, 3000);
             } else {
             } else {
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 3000);
               }, 3000);
             }
             }
           })
           })
@@ -702,11 +706,13 @@
               // longitude: "125.3333"
               // longitude: "125.3333"
             }
             }
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
             }, 1000)
             }, 1000)
           } else {
           } else {
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
             }, 1000)
             }, 1000)
           }
           }
@@ -802,11 +808,13 @@
               // longitude: "125.3333"
               // longitude: "125.3333"
             }
             }
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
               that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
             }, 1000)
             }, 1000)
           } else {
           } else {
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
             }, 1000)
             }, 1000)
           }
           }