<el-table
:row-class-name="tableRowClassName"
-------------------------->
<style scoped>
/deep/.el-table .warning-row {
background: oldlace;
}
</style>
//标红table第一行
tableRowClassName({row, rowIndex}) {
if (rowIndex === 0) {
return 'warning-row';
}
return '';
},