From 6a5962fe9544005dba620b00fb36c25fe2da4e76 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期二, 16 十一月 2021 15:24:46 +0800
Subject: [PATCH] 后端没修改的情况下添加默认背景图

---
 src/pages/searchForCluster/index/Searching.vue |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/src/pages/searchForCluster/index/Searching.vue b/src/pages/searchForCluster/index/Searching.vue
index 8ca04f6..8c5390f 100644
--- a/src/pages/searchForCluster/index/Searching.vue
+++ b/src/pages/searchForCluster/index/Searching.vue
@@ -238,8 +238,8 @@
 <script>
 import Card from "@/components/subComponents/Card";
 import UploadImg from "@/components/searching/UploadImg";
-//import CardWindow from "../components/cardWindow";
 import bus from "./main";
+import { getUrlKey } from "@/api/utils";
 export default {
   components: {
     Card,
@@ -257,7 +257,6 @@
       searchImgCardWidth: "",
       tagValues: [],
       alarmValues: [],
-      dialogVisible: false,
       taskValues: [],
       searchTime: [
         this.$moment().format("YYYY-MM-DD 00:00:00"),
@@ -265,7 +264,6 @@
       ],
       searchText: "",
       currentPage: 1,
-
     };
   },
 
@@ -275,7 +273,7 @@
     this.TreeDataPool.multiple = true;
     this.TreeDataPool.searchFrom = 'cluster';
     this.TreeDataPool.clean();
-    
+
     this.TreeDataPool.fetchTreeData();
   },
   mounted() {
@@ -297,12 +295,12 @@
     //     this.VideoTaskData.tasks[this.VideoTaskData.activeIndex].taskId
     //   ];
     // }
-     let start =  this.getUrlKey("start")
-      let end =  this.getUrlKey("end")
-    if (start&&end) {
-      this.searchTime = [start,end]
-     this.VideoPhotoData.searchTime = [start,end]
-    }else{
+    let start = getUrlKey("start")
+    let end = getUrlKey("end")
+    if (start && end) {
+      this.searchTime = [start, end]
+      this.VideoPhotoData.searchTime = [start, end]
+    } else {
       this.searchTime = this.getDateInit();
       this.VideoPhotoData.searchTime = this.getDateInit();
     }
@@ -311,14 +309,14 @@
     //this.TreeDataPool.searchFrom = 'cluster';
     // 鏆傛椂鍏抽棴璺宠浆 20200730
     // if (this.$route.query.showType === "findByPic") {
-    if (this.getUrlKey("showType")) {
+    if (getUrlKey("showType")) {
       this.VideoPhotoData.uploadDiaplay = true;
       // console.log("鍒璺宠繃鏉ョ殑浠ュ浘鎼滃浘");
-      this.VideoPhotoData.picUrl = this.getUrlKey("picSmUrl");
-      this.VideoPhotoData.uploadImg = this.getUrlKey("picSmUrl");
+      this.VideoPhotoData.picUrl = getUrlKey("picSmUrl");
+      this.VideoPhotoData.uploadImg = getUrlKey("picSmUrl");
       this.VideoPhotoData.uploadType = true
-      this.VideoPhotoData.compTargetId = this.getUrlKey("targetId")
-      this.VideoPhotoData.compTargetType = this.getUrlKey("compType")
+      this.VideoPhotoData.compTargetId = getUrlKey("targetId")
+      this.VideoPhotoData.compTargetType = getUrlKey("compType")
       this.VideoPhotoData.size = 30
       this.VideoPhotoData.compareTabs = ["esData"];
       this.VideoPhotoData.findPerson2(); // 鏌ユ壘姝や汉
@@ -453,7 +451,7 @@
     }
   },
   computed: {
-    searchTimeFormated(){
+    searchTimeFormated() {
       return this.format(this.searchTime)
     }
   },
@@ -672,8 +670,10 @@
     },
     changePages(page) {
       this.VideoPhotoData.page = page;
+      this.VideoPhotoData.isAll = true;
+      console.log("鍒嗛〉鏀瑰彉锛�", this.VideoPhotoData.page)
+
       if (!this.VideoPhotoData.uploadType) {
-        console.log("鍒嗛〉鏀瑰彉锛�")
         this.VideoPhotoData.uploadDiaplay = false;
         // this.VideoPhotoData.querySearchList();
         this.setLoadSearch(this.VideoPhotoData.querySearchList());
@@ -737,9 +737,6 @@
       fn.then(_ => {
         this.AuthData.closeLoad();
       })
-    },
-    getUrlKey(name) {
-      return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.href) || [, ""])[1].replace(/\+/g, '%20')) || null
     },
     tagChange(obj) {
       console.log(obj)

--
Gitblit v1.8.0