关于element列是个动态数组循环

需求要实现一个动态的列添加不同的数据 列名是一个接口动态获取, 列对应的单元格内容是和数组进行映射

<el-table-column prop=“deptName” label=“部门名称” align=“center” show-overflow-tooltip="" (显示省略号)>


{{deptAwardCount[scope.$index].awardCountVOs[index].totalCount}}


deptAwardCount的数组结构
deptAwardCount:[{deptID: 1
deptName: “中国移动通信集团政企客户分公司服务支撑中心”
awardCountVOs: [
{awardCountID: -1, awardID: 1, awardName: “一等奖”, totalCount: 0}
{awardCountID: -1, awardID: 2, awardName: “二等奖”, totalCount: 0}
{awardCountID: 436, awardID: 3, awardName: “三等奖”, totalCount: 4}
{awardCountID: 437, awardID: 4, awardName: “四等奖”, totalCount: 40}
{awardCountID: 438, awardID: 5, awardName: “五等奖”, totalCount: 41}
]
},
{
deptID: 2, deptName: “中国移动通信集团政企客户分公司”,…
awardCountVOs: [
{awardCountID: -1, awardID: 1, awardName: “一等奖”, totalCount: 0}
{awardCountID: -1, awardID: 2, awardName: “二等奖”, totalCount: 0}
{awardCountID: 436, awardID: 3, awardName: “三等奖”, totalCount: 4}
{awardCountID: 437, awardID: 4, awardName: “四等奖”, totalCount: 40}
{awardCountID: 438, awardID: 5, awardName: “五等奖”, totalCount: 41}
]
}
]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值