<el-table empty-text="暂无数据" :row-style="changeRowBgColorByIsPay">
</el-table>
// 根据 是否支付 来 改变 行背景颜色,绿色代表 ‘是’
changeRowBgColorByIsPay ({row, rowIndex}) {
if (row.isPay === 1) {
return 'background-color: green'
}
},
<el-table empty-text="暂无数据" :row-style="changeRowBgColorByIsPay">
</el-table>
// 根据 是否支付 来 改变 行背景颜色,绿色代表 ‘是’
changeRowBgColorByIsPay ({row, rowIndex}) {
if (row.isPay === 1) {
return 'background-color: green'
}
},