From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 23 六月 2022 17:42:58 +0800
Subject: [PATCH] bug修复
---
src/Pool/VideoPhotoData.ts | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index cadcdbc..1063f21 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -47,6 +47,7 @@
public scrollContainDom: any = '';
public uploadDiaplay: boolean = false;
public uploadType: boolean = false;
+ public dataSource: string = 'camera';
constructor() {
this.cards = [];
@@ -59,6 +60,7 @@
this.tabs = [];
this.tasks = [];
this.treeNodes = [];
+ this.dataSource = 'camera'
}
clearStatus() {
@@ -74,7 +76,7 @@
async querySearchList() {
this.cards = []
this.preCards = []
- var param:any = {
+ var param: any = {
page: this.page,
size: this.size,
searchTime: this.searchTime,
@@ -82,9 +84,10 @@
inputValue: this.inputValue,
tabs: this.queryTabs,
tasks: this.queryTasks,
- treeNodes: this.treeNodes
+ treeNodes: this.treeNodes,
+ dataSource:this.dataSource
}
- if(this.searchFrom == 'cluster'){
+ if (this.searchFrom == 'cluster') {
param.isAll = true
}
const rsp: any = await getSearchList(param);
@@ -118,7 +121,8 @@
treeNodes: this.treeNodes,
picUrl: this.picUrl,
databases: this.compareTabs,
- threshold: this.threshold
+ threshold: this.threshold,
+ isAll: this.searchFrom == "cluster" ? true : false
}
const rsp: any = await findPersonByPic(param);
if (rsp && rsp.success) {
@@ -141,7 +145,7 @@
this.cards = []
var compType = this.compTargetType == "1" ? 1 : 0
let param
- if ( this.searchFrom== "cluster") {
+ if (this.searchFrom == "cluster") {
param = {
page: this.page,
size: this.size,
@@ -201,7 +205,8 @@
picUrl: this.picUrl,
databases: this.compareTabs,
compareNum: this.compareNum,
- threshold: this.threshold
+ threshold: this.threshold,
+ isAll: this.searchFrom == "cluster" ? true : false
}
const rsp: any = await findPerson(param);
if (rsp && rsp.success) {
@@ -272,8 +277,8 @@
}
async queryTaskList() {
- let params:any = {};
- if(this.searchFrom == 'cluster'){
+ let params: any = {};
+ if (this.searchFrom == 'cluster') {
params.isPlatform = 1
}
console.log(params)
--
Gitblit v1.8.0