From 0175cda6150656bc74b34c6f6c71edd1e1fc653c Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 04 二月 2021 18:22:54 +0800 Subject: [PATCH] treee, 修复tab切换时树的选中状态.添加区域 --- src/Pool/VideoPhotoData.ts | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts index df9742e..31383b0 100644 --- a/src/Pool/VideoPhotoData.ts +++ b/src/Pool/VideoPhotoData.ts @@ -8,7 +8,7 @@ addToBase } from "@/api/search"; export default class VideoPhotoData { - public searchForm: string = 'search'; + public searchFrom: string = 'search'; public preCards: Array<object> = []; public cards: Array<object> = []; public persons: Array<object> = []; @@ -84,7 +84,7 @@ tasks: this.queryTasks, treeNodes: this.treeNodes } - if(this.searchForm == 'cluster'){ + if(this.searchFrom == 'cluster'){ param.isAll = true } const rsp: any = await getSearchList(param); @@ -252,7 +252,12 @@ } async queryTaskList() { - const rsp: any = await getTaskList({}); + let params:any = {}; + if(this.searchFrom == 'cluster'){ + params.isPlatform = 1 + } + console.log(params) + 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