Commit 79f107ec 79f107ec95686439d0f58b2ef5f6bcd5e0dffb7a by zhanghao

commit

1 parent 0611df45
......@@ -30,7 +30,7 @@
:data="bigdataReports"
border
style="width: 100%"
:row-class-name="tableRowClassName"
:cell-class-name="tableCellClassName"
:header-cell-style="{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop="method"
......@@ -85,6 +85,17 @@
}
return 'success-row';
},
tableCellClassName({row, column, rowIndex, columnIndex}) {
if(columnIndex == 2) {
if (row.tcFail > 0) {
return 'warning-row';
}
if (row.tcFail == 0 && row.tcSuccess == 0) {
return 'pass-row';
}
return 'success-row';
}
},
activity() {
const loading = this.$loading({
lock: true,
......