Преглед изворни кода

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

JX.LI пре 2 година
родитељ
комит
ffefdd389d
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      src/views/monitor.vue

+ 8 - 0
src/views/monitor.vue

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