Explorar o código

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

JX.LI %!s(int64=2) %!d(string=hai) anos
pai
achega
ffefdd389d
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/views/monitor.vue

+ 8 - 0
src/views/monitor.vue

@@ -415,11 +415,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);
               }, 2000);
               }, 2000);
             } else {
             } else {
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 2000);
               }, 2000);
             }
             }
           })
           })
@@ -500,11 +502,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);
               }, 2000);
               }, 2000);
             } else {
             } else {
               setTimeout(() => {
               setTimeout(() => {
                 that.$refs.supermap.clearM();
                 that.$refs.supermap.clearM();
+              that.$refs.supermap.clearMRadius()
               }, 2000);
               }, 2000);
             }
             }
           })
           })
@@ -709,11 +713,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(that.cameraMarkersList)
               that.$refs.supermap.setMarkersRadius(that.cameraMarkersList)
             }, 3000)
             }, 3000)
           } else {
           } else {
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
             }, 1000)
             }, 1000)
           }
           }
@@ -793,11 +799,13 @@
               this.cameraMarkersList.push(markersMap)
               this.cameraMarkersList.push(markersMap)
             }
             }
             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)
             }, 3000)
             }, 3000)
           } else {
           } else {
             setTimeout(() => {
             setTimeout(() => {
+                that.$refs.supermap.clearM();
               that.$refs.supermap.clearMRadius()
               that.$refs.supermap.clearMRadius()
             }, 1000)
             }, 1000)
           }
           }