树级结构数据转化成扁平化表格数据结构
mounted(){
const flatStructure = this.form.flatMap(part =>
part.children.flatMap(child =>
child.grandson.map(grand => ({
partName: part.partName,
projectContent: child.projectContent,
intactStandard: grand.intactStandard
}))
)
);
console.log(flatStructure)
}
打印出来的flatStructure里面的内容就是table表格数据结构
原文地址:https://blog.csdn.net/bbkhhvv/article/details/142492838
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!