|
@@ -162,7 +162,7 @@
|
|
|
ref="contractProdTable"
|
|
|
:data="contractProdList"
|
|
|
height="100%"
|
|
|
- row-class-name="custom-ranking-table-row"
|
|
|
+ :row-class-name="contractProdListAddClass"
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-table-column type="index" label="序号"></el-table-column>
|
|
@@ -525,6 +525,17 @@ export default {
|
|
|
}, 50)
|
|
|
})
|
|
|
},
|
|
|
+ contractProdListAddClass ({row, rowIndex}) {
|
|
|
+ if (row.warningState == '3') {
|
|
|
+ return 'custom-ranking-table-row overdue-row'
|
|
|
+ }
|
|
|
+
|
|
|
+ if (row.warningState === '2') {
|
|
|
+ return 'custom-ranking-table-row warning-row'
|
|
|
+ }
|
|
|
+
|
|
|
+ return 'custom-ranking-table-row'
|
|
|
+ },
|
|
|
outboundRecordTableScroll () {
|
|
|
this.$nextTick(() => {
|
|
|
const divData = this.$refs.outboundRecordTable.bodyWrapper
|
|
@@ -589,6 +600,18 @@ body,
|
|
|
.el-card__body {
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
+.custom-ranking-table-row {
|
|
|
+ font-size: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.el-table .warning-row {
|
|
|
+ color:#FFD700;
|
|
|
+}
|
|
|
+
|
|
|
+.el-table .overdue-row {
|
|
|
+ color: #FF0000;
|
|
|
+}
|
|
|
</style>
|
|
|
<style scoped>
|
|
|
.mod-home {
|