Commit 79f107ec 79f107ec95686439d0f58b2ef5f6bcd5e0dffb7a by zhanghao

commit

1 parent 0611df45
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 :data="bigdataReports" 30 :data="bigdataReports"
31 border 31 border
32 style="width: 100%" 32 style="width: 100%"
33 :row-class-name="tableRowClassName" 33 :cell-class-name="tableCellClassName"
34 :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> 34 :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
35 <el-table-column 35 <el-table-column
36 prop="method" 36 prop="method"
...@@ -85,6 +85,17 @@ ...@@ -85,6 +85,17 @@
85 } 85 }
86 return 'success-row'; 86 return 'success-row';
87 }, 87 },
88 tableCellClassName({row, column, rowIndex, columnIndex}) {
89 if(columnIndex == 2) {
90 if (row.tcFail > 0) {
91 return 'warning-row';
92 }
93 if (row.tcFail == 0 && row.tcSuccess == 0) {
94 return 'pass-row';
95 }
96 return 'success-row';
97 }
98 },
88 activity() { 99 activity() {
89 const loading = this.$loading({ 100 const loading = this.$loading({
90 lock: true, 101 lock: true,
......