diff --git a/src/views/xgf/insert/components/corpInfoAdd.vue b/src/views/xgf/insert/components/corpInfoAdd.vue index 70d2d01..1e4570a 100644 --- a/src/views/xgf/insert/components/corpInfoAdd.vue +++ b/src/views/xgf/insert/components/corpInfoAdd.vue @@ -484,6 +484,11 @@ export default { ).then((data) => { const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') this.treeDataSupervise = this.removeEmptyChildren(treeData) + this.treeData.push({ + id: '0', + name: '无', + nodes: [] + }) }).catch((e) => { }) diff --git a/src/views/xgf/insert/components/corpInfoEdit.vue b/src/views/xgf/insert/components/corpInfoEdit.vue index d285ef5..0407989 100644 --- a/src/views/xgf/insert/components/corpInfoEdit.vue +++ b/src/views/xgf/insert/components/corpInfoEdit.vue @@ -539,6 +539,11 @@ export default { ).then((data) => { const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') this.treeData = this.removeEmptyChildren(treeData) + this.treeData.push({ + id: '0', + name: '无', + nodes: [] + }) console.log(this.treeData) }).catch((e) => { })