同步电网一张图代码
This commit is contained in:
@@ -168,11 +168,13 @@ const tableStore = new TableStore({
|
||||
let treeData = []
|
||||
tableStore.table.data.forEach((item: any) => {
|
||||
if (item.children.length > 0) {
|
||||
item.id = item.children[0].pid
|
||||
item.children.forEach((k: any) => {
|
||||
k.pid = item.id
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
treeData = tree2List(tableStore.table.data,)
|
||||
treeData = tree2List(tableStore.table.data)
|
||||
tableStore.table.data = JSON.parse(JSON.stringify(treeData))
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user