From d50b0eafa1fcee6e547255cff5b85fe61730860f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期日, 09 十月 2022 17:46:03 +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