zhangzengfei
2021-04-21 3a2c4f13d1554d4e97463abebf085117b3f1e28f
src/Pool/TreeData.ts
@@ -112,7 +112,6 @@
      return
    }
    let _selected = this.selectedNodes
    console.log(this.selectedNodes)
    function nodeFilter(node: any) {
      if (node.type === '4' && node.selected) {
        _selected.push(node.id)
@@ -283,7 +282,7 @@
      // vue-js-tree 默认展开,控制部分折叠. z-tree 默认折叠, 控制部分展开
      if (this.foldNodeList[n.id]) {
        if (this.zTree) {
          n.open = true
          n.open = false
        } else {
          n.opened = false
        }
@@ -327,6 +326,9 @@
    node.forEach(n => {
      if (n.children && n.children.length > 0) {
        if (this.zTree) {
          n.open = true
        }
        this.sortTreeData(n.children)
      }
    })
@@ -362,7 +364,6 @@
      cameraName: this.searchInput
    })
    if (rsp && rsp.success) {
      console.log(rsp.data)
      this.clusterData = rsp.data ? rsp.data : []
      if (this.clusterData && this.clusterData.length > 0) {
        this.sortTreeData(this.clusterData)