| | |
| | | return |
| | | } |
| | | let _selected = this.selectedNodes |
| | | console.log(this.selectedNodes) |
| | | function nodeFilter(node: any) { |
| | | if (node.type === '4' && node.selected) { |
| | | _selected.push(node.id) |
| | |
| | | // vue-js-tree 默认展开,控制部分折叠. z-tree 默认折叠, 控制部分展开 |
| | | if (this.foldNodeList[n.id]) { |
| | | if (this.zTree) { |
| | | n.open = true |
| | | n.open = false |
| | | } else { |
| | | n.opened = false |
| | | } |
| | |
| | | |
| | | node.forEach(n => { |
| | | if (n.children && n.children.length > 0) { |
| | | if (this.zTree) { |
| | | n.open = true |
| | | } |
| | | this.sortTreeData(n.children) |
| | | } |
| | | }) |
| | |
| | | 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) |