From b200eed05d5bff2e12a45331bdc062f4b00bebf7 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:20:51 +0800 Subject: [PATCH] 列表样式 --- src/Pool/VideoPhotoData.ts | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts index e86de54..db514fd 100644 --- a/src/Pool/VideoPhotoData.ts +++ b/src/Pool/VideoPhotoData.ts @@ -82,7 +82,8 @@ inputValue: this.inputValue, tabs: this.queryTabs, tasks: this.queryTasks, - treeNodes: this.treeNodes + treeNodes: this.treeNodes, + dataSource: "camera" } if (this.searchFrom == 'cluster') { param.isAll = true @@ -225,20 +226,20 @@ this.tabsForUploadImg.splice(0, this.tabsForUploadImg.length) if (rsp && rsp.success) { var arr1 = new Array - arr1 = rsp.data.filter(i => { + arr1 = rsp.data&&rsp.data.tags.filter(i => { if (i.status === 1) { i.title = i.title + '(宸插垹闄�)' return i } }); - this.tabs = rsp.data.filter(function (i) { + this.tabs = rsp.data&&rsp.data.tags.filter(function (i) { if (i.status !== 1) { return i } }) this.tabs.push(...arr1) this.tabsForUploadImg.push({ key: "esData", title: "鎶撴媿搴�" }); - rsp.data.forEach(element => { + rsp.data.tags.forEach(element => { this.tabsForUploadImg.push(element as any); }); // 鏀剧疆榛戠櫧鍚嶅崟 0涓虹櫧鍚嶅崟 @@ -246,7 +247,7 @@ this.whiteList.length = 0 var josn = JSON.stringify(rsp) var resp = JSON.parse(josn) - resp.data.forEach(i => { + resp.data.tags.forEach(i => { if (i.status === 0 && i.bwType === "0") { //鐧藉悕鍗� if (i.analyServerId === "") { //鍚屾搴� i.title = i.title + '(鍚屾搴�)' @@ -287,7 +288,7 @@ // }); let taskNames = []; this.tasks = []; - rsp.data.forEach((d: any) => { + rsp.data.aggs.forEach((d: any) => { if (taskNames.indexOf(d.name) < 0) { taskNames.push(d.name); this.tasks.push(d) -- Gitblit v1.8.0