فهرست منبع

监控中心搜索bug修复

王通 2 سال پیش
والد
کامیت
ff40b3f74d
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/views/monitor.vue

+ 4 - 0
src/views/monitor.vue

@@ -484,6 +484,7 @@
           .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 = {
@@ -492,6 +493,7 @@
                   latitude: res.data[j].latitude,
                 };
                 that.visuForestCloudCameraBOListSearch.push(dat);
+                that.visuForestCloudCameraBOList.push(dat)
               }
               for (let i = 0; i < res.data.length; i++) {
                 let markersMap = {
@@ -590,6 +592,7 @@
         let markersList = [];
         getMonitorDeviceAndDataList(this.deptId).then((res) => {
           this.visuForestCloudCameraBOListSearch = [];
+          this.visuForestCloudCameraBOList=[]
           list = res.data;
           //this.sensorNum = list.length
           list.forEach((item) => {
@@ -599,6 +602,7 @@
               latitude: item.latitude,
             };
             this.visuForestCloudCameraBOListSearch.push(dat);
+            this.visuForestCloudCameraBOList.push(dat);
             let markersMap = {
               lng: 124.59,
               lat: 43.02,