From 3c46fcdb8c6217ff97e98c33d8f1e6e9b9cc7c1b Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 02 十一月 2020 19:27:18 +0800 Subject: [PATCH] 桌面图标自适应,应用中心添加升级角标;应用中心算法卸载联调,tab名称更新;统计查询(集群)场景查询参数更新 --- src/Pool/VideoPhotoData.ts | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts index 15b058c..33e5c3d 100644 --- a/src/Pool/VideoPhotoData.ts +++ b/src/Pool/VideoPhotoData.ts @@ -8,6 +8,7 @@ addToBase } from "@/api/search"; export default class VideoPhotoData { + public searchFrom: string = 'search'; public preCards: Array<object> = []; public cards: Array<object> = []; public persons: Array<object> = []; @@ -73,7 +74,7 @@ async querySearchList() { this.cards = [] this.preCards = [] - var param = { + var param:any = { page: this.page, size: this.size, searchTime: this.searchTime, @@ -81,10 +82,11 @@ inputValue: this.inputValue, tabs: this.queryTabs, tasks: this.queryTasks, - treeNodes: this.treeNodes, - isAll: true + treeNodes: this.treeNodes } - + if(this.searchFrom == 'cluster'){ + param.isAll = true + } const rsp: any = await getSearchList(param); if (rsp && rsp.success) { this.cards.length = 0 // 娓呬袱娆★紝绗竴娆℃槸涓轰簡鐐瑰畬涔嬪悗涓嶄細鍑虹幇涔嬪墠鏁版嵁鐨勬畫褰憋紝杩欐鏄负浜嗛槻姝㈠洜涓哄紓姝ラ棶棰樹袱娆¤姹備細鍑虹幇鍙屽�嶆暟鎹殑闂 @@ -250,7 +252,13 @@ } async queryTaskList() { - const rsp: any = await getTaskList({}); + let params:any = {}; + if(this.searchFrom == 'cluster'){ + params.isPlatform = 1 + } + console.log(params) + debugger + const rsp: any = await getTaskList(params); if (rsp && rsp.success) { // this.tasks.splice(0, this.tasks.length) // rsp.data.forEach(element => { -- Gitblit v1.8.0