Commit 66916e43 66916e439fa6516b43bfc5ae92d1bcd20dc9a206 by zhanghao

commit

1 parent 0b60db22
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
6 :data="baseReports" 6 :data="baseReports"
7 border 7 border
8 style="width: 100%" 8 style="width: 100%"
9 :cell-class-name="tcSuccessClassName"
9 :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> 10 :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
10 <el-table-column 11 <el-table-column
11 prop="method" 12 prop="method"
...@@ -96,6 +97,13 @@ ...@@ -96,6 +97,13 @@
96 return 'success-row'; 97 return 'success-row';
97 } 98 }
98 }, 99 },
100 tcSuccessClassName({row, column, rowIndex, columnIndex}) {
101 if(columnIndex == 2) {
102 if (row.tcSuccess == 0) {
103 return 'pass-row';
104 }
105 }
106 },
99 activity() { 107 activity() {
100 const loading = this.$loading({ 108 const loading = this.$loading({
101 lock: true, 109 lock: true,
......