zhangzengfei
2022-10-09 d50b0eafa1fcee6e547255cff5b85fe61730860f
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()
    }