heyujie
2021-03-24 6e3d8234a4b1bae86b3c896468e20ea9f13c7fb7
src/pages/searchForCluster/index/Searching.vue
@@ -137,7 +137,9 @@
                :outHeight="'162px'"
                :outWidth="VideoPhotoData.uploadDiaplay?searchImgCardWidth:cardWidth"
                :data="item"
                :isFromCluster="true"
                :showType="showType"
                :searchTime="searchTimeFormated"
                @detailsClick="getDetails($event, index)"
                @addToBase="toAdd"
              ></Card>
@@ -295,9 +297,15 @@
    //     this.VideoTaskData.tasks[this.VideoTaskData.activeIndex].taskId
    //   ];
    // }
    this.searchTime = this.getDateInit();
    this.VideoPhotoData.searchTime = this.getDateInit();
     let start =  this.getUrlKey("start")
      let end =  this.getUrlKey("end")
    if (start&&end) {
      this.searchTime = [start,end]
     this.VideoPhotoData.searchTime = [start,end]
    }else{
      this.searchTime = this.getDateInit();
      this.VideoPhotoData.searchTime = this.getDateInit();
    }
    //设置搜索来源(应用名称)
    this.VideoPhotoData.searchFrom = 'cluster';
    //this.TreeDataPool.searchFrom = 'cluster';
@@ -442,6 +450,11 @@
        this.VideoPhotoData.uploadType = false;
        this.VideoPhotoData.showType = "search";
      }
    }
  },
  computed: {
    searchTimeFormated(){
      return this.format(this.searchTime)
    }
  },
  methods: {
@@ -614,7 +627,6 @@
        tasks = tasks.concat(arr)
      });
      this.VideoPhotoData.queryTasks = tasks;
      this.VideoPhotoData.queryAlarmlevel = this.stringToNum();
      this.VideoPhotoData.searchTime = this.format(this.searchTime);
      //this.VideoPhotoData.inputValue = this.searchText;