From d7d149a6fd1d1d889cb1c4ba8087c4e90b2d4861 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Thu, 9 Jun 2022 14:25:39 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=8F=98=E6=9B=B4=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/tableCollection/index.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index 62b9a5144..654667688 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -10,6 +10,7 @@ :data-source="dataSource" :loading="loading" :columns="columns" + :rowClassName="rowClassName" :components="components" @change="tableOnChange" @onHeaderRow='onHeaderRow' @@ -231,6 +232,9 @@ mounted() { }, methods: { + rowClassName(row,index) { + return row.changeFlag == '1'? 'yellow' : 'red' + }, // 查看配置详细信息 onClickSee(val) { let _this = this @@ -574,5 +578,10 @@ .resize-table-th { position: relative; } - + /deep/.ant-table-tbody .yellow { + background-color: #ffff001f !important; + height: 40px !important; + border: none !important; + padding: 0 !important; + }