From 0f70bb5e95342e1c88e16b4c12609cd45dd1b103 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 21 五月 2021 14:27:47 +0800
Subject: [PATCH] add bhomebus api
---
src/Pool/VideoPhotoData.ts | 60 +++++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 41 insertions(+), 19 deletions(-)
diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index 31383b0..e86de54 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -74,7 +74,7 @@
async querySearchList() {
this.cards = []
this.preCards = []
- var param:any = {
+ var param: any = {
page: this.page,
size: this.size,
searchTime: this.searchTime,
@@ -84,7 +84,7 @@
tasks: this.queryTasks,
treeNodes: this.treeNodes
}
- if(this.searchFrom == 'cluster'){
+ if (this.searchFrom == 'cluster') {
param.isAll = true
}
const rsp: any = await getSearchList(param);
@@ -118,7 +118,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) {
@@ -137,21 +138,41 @@
}
}
async findPerson2() {
+ // 111
this.cards = []
var compType = this.compTargetType == "1" ? 1 : 0
- var param = {
- page: this.page,
- size: this.size,
- searchTime: this.searchTime,
- picUrl: this.picUrl,
- alarmlevel: this.queryAlarmlevel,
- inputValue: this.inputValue,
- tasks: this.queryTasks,
- treeNodes: this.treeNodes,
- compTargetId: this.compTargetId,
- compTargetType: compType,
- databases: this.compareTabs,
- threshold: this.threshold
+ let param
+ if (this.searchFrom == "cluster") {
+ param = {
+ page: this.page,
+ size: this.size,
+ searchTime: this.searchTime,
+ picUrl: this.picUrl,
+ alarmlevel: this.queryAlarmlevel,
+ inputValue: this.inputValue,
+ tasks: this.queryTasks,
+ treeNodes: this.treeNodes,
+ compTargetId: this.compTargetId,
+ compTargetType: compType,
+ databases: this.compareTabs,
+ threshold: this.threshold,
+ isAll: true
+ }
+ } else {
+ param = {
+ page: this.page,
+ size: this.size,
+ searchTime: this.searchTime,
+ picUrl: this.picUrl,
+ alarmlevel: this.queryAlarmlevel,
+ inputValue: this.inputValue,
+ tasks: this.queryTasks,
+ treeNodes: this.treeNodes,
+ compTargetId: this.compTargetId,
+ compTargetType: compType,
+ databases: this.compareTabs,
+ threshold: this.threshold,
+ }
}
const rsp: any = await findPersonByPic(param);
if (rsp && rsp.success) {
@@ -181,7 +202,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) {
@@ -252,8 +274,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