Bläddra i källkod

监控中心搜索bug修复

王通 1 år sedan
förälder
incheckning
bb472ab823
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/views/monitor.vue

+ 2 - 1
src/views/monitor.vue

@@ -552,6 +552,7 @@ export default {
         .then(function (res) {
           that.loudspeakerNum = res.data.length;
           that.visuForestCloudCameraBOListSearch = [];
+          that.visuForestCloudCameraBOList=[];
           if (res.data != null && res.data.length > 0) {
             for (let j = 0; j < res.data.length; j++) {
               let dat = {
@@ -560,6 +561,7 @@ export default {
                 latitude: res.data[j].latitude,
               };
               that.visuForestCloudCameraBOListSearch.push(dat);
+              that.visuForestCloudCameraBOList.push(dat);
             }
             for (let i = 0; i < res.data.length; i++) {
               let markersMap = {
@@ -1164,7 +1166,6 @@ export default {
         that.cameraMarkersList = [];
         that.visuForestCloudMapDeviceBOList =
           res.data.visuForestCloudMapDeviceBOList;
-
         that.region = res.data.visuForestCloudTodaySjfbBOList;
 
         if (