|
@@ -1033,9 +1033,16 @@ export default {
|
|
|
tabTypeLazyTreeAll(
|
|
|
{parentId:this.curTreeData.parentId,current:1,size:1000}
|
|
|
).then((res) => {
|
|
|
+ var resarr= res.data.data.records.map(item=>{
|
|
|
+ return{
|
|
|
+ ...item,
|
|
|
+ leaf: !item.hasChildren
|
|
|
+ }
|
|
|
+ })
|
|
|
this.$refs.avueTree.updateKeyChildren(
|
|
|
this.curTreeData.parentId,
|
|
|
- res.data.data.records
|
|
|
+ // res.data.data.records
|
|
|
+ resarr
|
|
|
);
|
|
|
this.$refs.avueTree.setCurrentKey(this.curNode.data.id);
|
|
|
});
|