From 0dbf19e9f92f5cb1d5ca9a06fd268d3b16e466e3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 07 十二月 2022 15:22:01 +0800 Subject: [PATCH] 完善断流监控,集群和设备详情的查询 --- src/Pool/TreeData.ts | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts index 7598c5b..954bc5c 100644 --- a/src/Pool/TreeData.ts +++ b/src/Pool/TreeData.ts @@ -72,6 +72,8 @@ // 璁板綍鎽勫儚鏈烘墍灞炵殑鐖惰妭鐐瑰悕绉� public cameraParents: object + // 璁板綍鎵�鏈夌殑瀛愯妭鐐� + public childNodes: Array<object> constructor() { this.openeds = [true, true, false] @@ -115,6 +117,7 @@ this.clusterId = "" this.devId = "" this.cameraParents = {} + this.childNodes = [] } setVideoArr(index: number, value: object, vue: any): void { @@ -350,6 +353,7 @@ } else { if (n.type != "MENU") { this.cameraParents[n.id] = parentName + this.childNodes.push(n) } } }) @@ -436,6 +440,8 @@ async fetchTreeData() { this.cameraParents = {} + this.childNodes = [] + if (this.openeds[0]) { await this.fetchLocalTree() } -- Gitblit v1.8.0