主管部门可以选无

pull/11/head
liujun 2024-03-19 11:54:27 +08:00
parent 14a067c473
commit 38bc28dbe6
2 changed files with 10 additions and 0 deletions

View File

@ -484,6 +484,11 @@ export default {
).then((data) => { ).then((data) => {
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeDataSupervise = this.removeEmptyChildren(treeData) this.treeDataSupervise = this.removeEmptyChildren(treeData)
this.treeData.push({
id: '0',
name: '无',
nodes: []
})
}).catch((e) => { }).catch((e) => {
}) })

View File

@ -539,6 +539,11 @@ export default {
).then((data) => { ).then((data) => {
const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes') const treeData = this.listTransTree(JSON.parse(data.zTreeNodes), 'id', 'pId', 'nodes')
this.treeData = this.removeEmptyChildren(treeData) this.treeData = this.removeEmptyChildren(treeData)
this.treeData.push({
id: '0',
name: '无',
nodes: []
})
console.log(this.treeData) console.log(this.treeData)
}).catch((e) => { }).catch((e) => {
}) })