From fd019c06c025ff7871d77c679d2b61680daf0b4d Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期三, 30 八月 2023 18:40:32 +0800 Subject: [PATCH] 保养修改 --- src/views/eam/SpecialtyMaintenanceOrderList.vue | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/src/views/eam/SpecialtyMaintenanceOrderList.vue b/src/views/eam/SpecialtyMaintenanceOrderList.vue index cb286e9..d7e8d27 100644 --- a/src/views/eam/SpecialtyMaintenanceOrderList.vue +++ b/src/views/eam/SpecialtyMaintenanceOrderList.vue @@ -126,6 +126,7 @@ :loading="loading" class="j-table-force-nowrap" @change="handleTableChange" + :rowClassName="tableRowClass" > <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> <span @@ -573,9 +574,44 @@ // //娓呯┖鍒楄〃閫変腑 // this.onClearSelected() // }, + + //棰勮棰滆壊 + tableRowClass(record, index) { + if ("1" == record.status || "2" == record.status) { + if (record.yellowWarningTime < record.currentDateTime && record.currentDateTime < record.redWarningTime) { + return 'yellow' + } else if (record.redWarningTime < record.currentDateTime && record.currentDateTime < record.planStartTime) { + return 'error' + } else if (record.planStartTime < record.currentDateTime) { + return 'frozenRowClass' + } + } + }, } } </script> -<style scoped> +<style > @import '~@assets/less/common.less'; +.frozenRowClass { + color: #c9c9c9; + font-weight: bold; +} +.success { + color: green; +} +.error { + color: red; + font-weight: bold; +} +.yellow { + color: yellow; + font-weight: bold; +} +.fontweight { + font-weight: bold; +} + +.ant-table-tbody .red { + background-color: red !important; +} </style> \ No newline at end of file -- Gitblit v1.9.3