Попробуйте это
:style = "table.row.launch_success == true ? '{"backgrondColor": "rgb(252, 230, 190)"}' : table.row.launch_success == false ? '{"backgrondColor": "rgb(252, 230, 190)"}' : '{"backgrondColor': "rgb(252, 230, 190)"}'
Или
В шаблоне
<el-table :data="tableData2" style="width: 100%" :row-class-name="tableRowClassName">
Обновите метод, как показано ниже
methods: {
tableRowClassName({row, rowIndex}) {
if (row.launch_success == true) {
return 'success-row';
} else if (row.launch_success == false) {
return 'warning-row';
}
return 'other-row';
}
},
Обновите CSS, как показано ниже
.el-table .warning-row {
background: 'rgb(252, 230, 190)';
}
.el-table .success-row {
background: 'rgb(252, 230, 190)';
}
.el-table .other-row {
background: 'rgb(252, 230, 190)';
}