element表格处理问题!!!!!!!!!!!!!!!!!!!
let thisData = [{
"id": "10002",
"name": "物品名称",
"orderNum": 1,
"code": "BG0001",
"state": 1,
"specification": "品牌规格",
"unit": "计量单位",
"classId": "10001",
"className": "类别名称",
"summaries": [
{
"depName": "技术部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "产品部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "研发部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "企划部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "发展部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "创新部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "办公室",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
}
]
},{
"id": "10003",
"name": "物品名称1",
"orderNum": 1,
"code": "BG0001",
"state": 1,
"specification": "品牌规格1",
"unit": "计量单位1",
"classId": "10001",
"className": "类别名称1",
"summaries": [
{
"depName": "技术部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "产品部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "研发部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "企划部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "发展部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "创新部",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
},
{
"depName": "办公室",
"depId": "1002",
"amount": 100,
"price": 54.5,
"sumTotal": 54500
}
]
}];
这是后台的数据
我要实现的效果如下图:
尝试了很多方法也没有实现,求大佬指点一下,谢谢!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)