| | |
| | | return map |
| | | }, {}) |
| | | this.keyword = '' |
| | | this.$nextTick(() => { this.restoreChecked(); this.syncSelected() }) |
| | | this.$nextTick(() => { |
| | | this.expandLockedRoots(lockedXNo) |
| | | this.restoreChecked() |
| | | this.syncSelected() |
| | | }) |
| | | }).finally(() => { this.loading = false }) |
| | | }, |
| | | expandLockedRoots(lockedXNo) { |
| | | if (!lockedXNo || !this.$refs.tree) return |
| | | this.tree.forEach(node => { |
| | | const treeNode = this.$refs.tree.getNode(node.id) |
| | | if (treeNode) treeNode.expand() |
| | | }) |
| | | }, |
| | | loadNode(node, resolve) { |
| | | if (!node || !node.data || !node.data.id) { |
| | | resolve([]) |