From 5058e8d5fc8220a4fa31d160935c1aafd6074fb3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期三, 07 四月 2021 15:46:45 +0800 Subject: [PATCH] 修复以图搜图底库图片显示的问题 --- src/Pool/VideoPhotoData.ts | 49 +++++++++++++++++++++++++++++++++++-------------- 1 files changed, 35 insertions(+), 14 deletions(-) diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts index 31383b0..ca783bc 100644 --- a/src/Pool/VideoPhotoData.ts +++ b/src/Pool/VideoPhotoData.ts @@ -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) { -- Gitblit v1.8.0