| | |
| | | |
| | | // 记录摄像机所属的父节点名称 |
| | | public cameraParents: object |
| | | // 记录所有的子节点 |
| | | public childNodes: Array<object> |
| | | |
| | | constructor() { |
| | | this.openeds = [true, true, false] |
| | |
| | | this.clusterId = "" |
| | | this.devId = "" |
| | | this.cameraParents = {} |
| | | this.childNodes = [] |
| | | } |
| | | |
| | | setVideoArr(index: number, value: object, vue: any): void { |
| | |
| | | } else { |
| | | if (n.type != "MENU") { |
| | | this.cameraParents[n.id] = parentName |
| | | this.childNodes.push(n) |
| | | } |
| | | } |
| | | }) |
| | |
| | | |
| | | async fetchTreeData() { |
| | | this.cameraParents = {} |
| | | this.childNodes = [] |
| | | |
| | | if (this.openeds[0]) { |
| | | await this.fetchLocalTree() |
| | | } |