Sfoglia il codice sorgente

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

JX.LI 2 anni fa
parent
commit
3f79e78344
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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)
           }