Browse Source

监控中心加搜索

wang_xy 2 years ago
parent
commit
171a28c579
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/monitor.vue

+ 3 - 1
src/views/monitor.vue

@@ -114,7 +114,7 @@
                 prefix-icon="el-icon-search"
                 style="margin-bottom: 20px"
               />
-              <div class="d-l-con" v-for="(item,index) in visuForestCloudCameraBOList"
+              <div class="d-l-con" v-for="(item,index) in visuForestCloudCameraBOListSearch"
                    :class="{on:listCurrentIndex2 == index}"
                    v-on:click="dropLocation(item.latitude,item.longitude,index)">
                 <div class="d-l-l-text">
@@ -417,6 +417,7 @@ export default {
         }
 
         that.visuForestCloudCameraBOList = res.data.visuForestCloudCameraBOList
+        that.visuForestCloudCameraBOListSearch = res.data.visuForestCloudCameraBOList
         if (res.data.visuForestCloudCameraBOList != null && res.data.visuForestCloudCameraBOList
           .length > 0) {
           for (let i = 0; i < res.data.visuForestCloudCameraBOList.length; i++) {
@@ -511,6 +512,7 @@ export default {
       selectCameraByDeptId(depId).then(res => {
         //根据设备类型查看列表
         that.visuForestCloudCameraBOList = res.data
+        that.visuForestCloudCameraBOListSearch = res.data
         if (res.data != null && res.data.length > 0) {
           for (let i = 0; i < res.data.length; i++) {
             let markersMap = {