<el-table @cell-click="rowClick" :row-class-name="rowClass">
/**
* 表格行的class赋值
*/
rowClass({row, rowIndex}) {
row.index = rowIndex;
if(this.cargoKindDialogClickRow === rowIndex) {
return "tableActive";
}
}
/**
* 模态框中分类的点击事件
*/
rowClick(row) {
this.cargoKindDialogClickRow = row.index;
}