Explorar el Código

监控中心搜索bug修复

王通 hace 1 año
padre
commit
f3d9e8cd5b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/views/monitor.vue

+ 4 - 0
src/views/monitor.vue

@@ -406,6 +406,7 @@ export default {
       let markersList = [];
       getMonitorDeviceAndDataList(deptId).then((res) => {
         this.visuForestCloudCameraBOListSearch = [];
+        this.visuForestCloudCameraBOList=[]
         this.tempList = []
         list = res.data;
         //this.sensorNum = list.length
@@ -416,6 +417,7 @@ export default {
             latitude: item.latitude,
           };
           this.visuForestCloudCameraBOListSearch.push(dat);
+          this.visuForestCloudCameraBOList.push(dat)
           this.tempList = this.visuForestCloudCameraBOListSearch;
           let markersMap = {
             lng: 124.59,
@@ -949,6 +951,7 @@ export default {
         .then(function (res) {
           that.loudspeakerNum = res.data.length;
           that.visuForestCloudCameraBOListSearch = [];
+          that.visuForestCloudCameraBOList = [];
           that.tempList = []
           if (res.data != null && res.data.length > 0) {
             for (let j = 0; j < res.data.length; j++) {
@@ -958,6 +961,7 @@ export default {
                 latitude: res.data[j].latitude,
               };
               that.visuForestCloudCameraBOListSearch.push(dat);
+              that.visuForestCloudCameraBOList.push(dat);
             }
             that.tempList = that.visuForestCloudCameraBOListSearch
             for (let i = 0; i < res.data.length; i++) {