From 9a953e26fc6c3cf3ef61d60df04525bb6e926787 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期二, 06 七月 2021 14:00:25 +0800
Subject: [PATCH] 按条件筛选
---
src/pages/search/index/Searching.vue | 34 ++++++++++++++++++++++++++--------
1 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/src/pages/search/index/Searching.vue b/src/pages/search/index/Searching.vue
index 327682f..f78deed 100644
--- a/src/pages/search/index/Searching.vue
+++ b/src/pages/search/index/Searching.vue
@@ -137,6 +137,7 @@
:outHeight="'162px'"
:outWidth="VideoPhotoData.uploadDiaplay?searchImgCardWidth:cardWidth"
:data="item"
+ :searchTime="searchTimeFormated"
:showType="showType"
@detailsClick="getDetails($event, index)"
@addToBase="toAdd"
@@ -266,7 +267,11 @@
};
},
-
+ computed: {
+ searchTimeFormated(){
+ return this.format(this.searchTime)
+ }
+ },
created () {
this.TreeDataPool.readonly = true;
this.TreeDataPool.gbReadonly = true;
@@ -293,9 +298,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();
+ }
// 鏆傛椂鍏抽棴璺宠浆 20200730
// if (this.$route.query.showType === "findByPic") {
@@ -343,6 +354,13 @@
this.VideoPhotoData.selectWhites = [];
},
watch: {
+ 'TreeDataPool.treeActiveName' (n, o) {
+ if (n && n == 'camera') {
+ console.log('mounted 鏌ヨes')
+ this.VideoPhotoData.treeNodes = [];
+ this.setLoadSearch(this.VideoPhotoData.querySearchList());
+ }
+ },
"TreeDataPool.showTreeBox" (value) {
this.getHeight();
if (this.VideoPhotoData.realSmallPath.length > 0) {
@@ -367,10 +385,10 @@
if (this.VideoPhotoData.uploadType) {
this.VideoPhotoData.findPersonByPage()
} else {
-
- console.log('TreeDataPool.selectedNodes 鏌ヨes')
- this.setLoadSearch(this.VideoPhotoData.querySearchList());
-
+
+ console.log('TreeDataPool.selectedNodes 鏌ヨes')
+ this.setLoadSearch(this.VideoPhotoData.querySearchList());
+
}
}
},
--
Gitblit v1.8.0