...
1234567
data() { return { maps: new Map(), }}
123456789
treeLoad(tree, treeNode, resolve) { const parentId = tree.id; this.maps.set(parentId, { tree, treeNode, resolve }); getLazyList(parentId).then((res) => { resolve(res.data.data); });},
12345678910111213
onLoad(page, params = {}) { this.loading = true; getLazyList(this.parentId, Object.assign(params, this.query)).then( (res) => { this.data = res.data.data; this.loading = false; this.selectionClear(); this.updateTable(); } ); },
12345678
updateTable() { this.maps.forEach((item, key) => { const { tree, treeNode, resolve } = this.maps.get(key); this.treeLoad(tree, treeNode, resolve); });},
123
this.$set(this.$refs.crud.$refs.table.store.states.lazyTreeNodeMap, row.parentId, [])