字典列表

This commit is contained in:
caoyang
2022-03-03 16:08:22 +08:00
parent d88cf8722e
commit ced662f2e5
10 changed files with 89 additions and 72 deletions
@@ -46,40 +46,7 @@
selectedKeys: [],
expandedKeys: [],
autoExpandParent: true,
treeData: [
{
title: '车身结构',
key: '0-0',
children: [
{
title: '车身',
key: '0-0-0',
children: [
{ title: '前窗', key: '0-0-0-0' },
{ title: '挡风', key: '0-0-0-1' },
{ title: '车门', key: '0-0-0-2' },
],
},
{
title: '底盘',
key: '0-0-1',
},
{
title: '车机系统',
key: '0-0-2',
},
],
},
{
title: '软件中心',
key: '0-1',
children: [
{ title: '软件一', key: '0-1-0-0' },
{ title: '软件二', key: '0-1-0-1' },
{ title: '软件三', key: '0-1-0-2' },
],
},
],
treeData: [],
dataList:[],
searchValue:''
}
@@ -106,7 +73,7 @@
if(res.success){
let data=res.result
this.treeData=this.addAttr(data)
console.log('treeData',this.treeData)
// console.log('treeData',this.treeData)
}
})
},