From 0961ee5718e67c942937647cf4ee471e236e4edc Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期三, 03 三月 2021 19:04:28 +0800 Subject: [PATCH] 应用中心和更新的逻辑 --- 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