From a3f357e8a60443b74b64c7479113c68eb35ce1f5 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 19:44:57 +0800
Subject: [PATCH] 控制轮询

---
 src/Pool/VideoPhotoData.ts |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index e86de54..14abc0d 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -47,6 +47,8 @@
   public scrollContainDom: any = '';
   public uploadDiaplay: boolean = false;
   public uploadType: boolean = false;
+  public dataSource: string = 'camera';
+  public collection: string = ''
 
   constructor() {
     this.cards = [];
@@ -59,6 +61,8 @@
     this.tabs = [];
     this.tasks = [];
     this.treeNodes = [];
+    this.dataSource = 'camera'
+    this.collection = ''
   }
 
   clearStatus() {
@@ -82,7 +86,9 @@
       inputValue: this.inputValue,
       tabs: this.queryTabs,
       tasks: this.queryTasks,
-      treeNodes: this.treeNodes
+      treeNodes: this.treeNodes,
+      dataSource:this.dataSource,
+      collection:this.collection
     }
     if (this.searchFrom == 'cluster') {
       param.isAll = true
@@ -203,7 +209,8 @@
       databases: this.compareTabs,
       compareNum: this.compareNum,
       threshold: this.threshold,
-      isAll: this.searchFrom == "cluster" ? true : false
+      isAll: this.searchFrom == "cluster" ? true : false,
+      collection:this.collection
     }
     const rsp: any = await findPerson(param);
     if (rsp && rsp.success) {

--
Gitblit v1.8.0