From 8098e7f023320b5bd9482bace3bf4f19d807765e Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 16 四月 2021 18:08:26 +0800
Subject: [PATCH] 修复集群检索无法分页的bug

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

diff --git a/src/pages/searchForCluster/index/Searching.vue b/src/pages/searchForCluster/index/Searching.vue
index 8ca04f6..9814964 100644
--- a/src/pages/searchForCluster/index/Searching.vue
+++ b/src/pages/searchForCluster/index/Searching.vue
@@ -275,7 +275,7 @@
     this.TreeDataPool.multiple = true;
     this.TreeDataPool.searchFrom = 'cluster';
     this.TreeDataPool.clean();
-    
+
     this.TreeDataPool.fetchTreeData();
   },
   mounted() {
@@ -297,12 +297,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 = 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();
     }
@@ -453,7 +453,7 @@
     }
   },
   computed: {
-    searchTimeFormated(){
+    searchTimeFormated() {
       return this.format(this.searchTime)
     }
   },
@@ -672,8 +672,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());

--
Gitblit v1.8.0