<el-table-column label="商品类型" align="center">
<template slot-scope="scope">
<span v-for="(item, index) in ProductType" :key="index">
{
{ scope.row.commodityTypeId == item.value ? item.commodityTypeName: "" }}
</span>
</template>
</el-table-column>
//数据源
ProductType:[
{
"label": "试剂",
"value": 0
},
{
"label": "损耗品",
"value": 1
},
{
"label": "危化品",
"value": 2
}
]
el-table-column 根据数据映射展示符合条件数据
猜你喜欢
转载自blog.csdn.net/weixin_51600020/article/details/129585905
今日推荐
周排行