From a4ef90964f4eb449be659741d61eea896569ee45 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Tue, 26 Oct 2021 17:29:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=9C=80=E6=B1=82=E5=8F=98=E6=9B=B4]=20?= =?UTF-8?q?=E6=94=AF=E5=87=BA=E5=90=88=E5=90=8C=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExpenditureContractList.vue | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/views/contractManagement/expenditureContract/ExpenditureContractList.vue b/src/views/contractManagement/expenditureContract/ExpenditureContractList.vue index fe3b05f..c3c35e9 100644 --- a/src/views/contractManagement/expenditureContract/ExpenditureContractList.vue +++ b/src/views/contractManagement/expenditureContract/ExpenditureContractList.vue @@ -84,13 +84,22 @@ :pagination="ipagination" :loading="loading" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" + :rowClassName="aduitClass" @change="handleTableChange" class="j-table-force-nowrap"> + @@ -235,6 +244,17 @@ export default { } }) }, + /** + * 动态设置到期未付款状态的表格样式 + * @param record + * @returns {string} + */ + aduitClass(record) { + if (record.chargeStatus === 1) { + return 'aduit' + } + return '' + }, /** * 详情 * @param id @@ -292,4 +312,7 @@ export default { \ No newline at end of file