郫都大屏
This commit is contained in:
@@ -114,9 +114,7 @@
|
||||
if (res.code === 0) {
|
||||
this.treeData = res.data.filter(e => !e.parentGirdId)
|
||||
const parentGirdId = this.treeData[0].id
|
||||
const arr = res.data.filter(v => {
|
||||
return v.parentGirdId === parentGirdId || !v.parentGirdId
|
||||
})
|
||||
|
||||
this.treeData.map(p => this.addChild(p, res.data.map(v => {
|
||||
if (v.id === parentGirdId) {
|
||||
this.defaultExpandedKeys.push(v.id)
|
||||
|
||||
Reference in New Issue
Block a user