diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index 68abc2743..2358e18eb 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -9,6 +9,7 @@ :scroll="{x: true}" :data-source="dataSource" :loading="loading" + :rowClassName="rowClassName" :columns="columns" @change="tableOnChange" > @@ -124,7 +125,9 @@ this.getTableList() }, methods: { - + rowClassName(record) { + return record.state == '废止' ? 'rowClassNameBack' : '' + }, getTextWith(text, fontStyle) { var canvas = document.createElement('canvas') var context = canvas.getContext('2d') @@ -245,6 +248,10 @@ .ant-table td { white-space: nowrap; } + + .rowClassNameBack { + background: #f5f5f5; + }