From e26365fa37542ee77177c0690d40b4ede25319ae Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 29 Jul 2024 16:17:29 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug87275?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MarketRegulationsDetailPage.vue | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue index 9f8f1f5..c56a11b 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue @@ -89,6 +89,7 @@ :dataSource="dataSource" :pagination="ipagination" :loading="loading" + :customRow="customRow" @change="handleTableChange"> @@ -346,7 +347,8 @@ export default { list: '/laws/marketStandardDetail/page' }, disableMixinCreated: true, - historyVersions: [] // 历史版本数据 + historyVersions: [], // 历史版本数据 + highlightKey: null } }, beforeRouteUpdate (to, from, next) { @@ -373,6 +375,21 @@ export default { this.loadData() }, methods: { + customRow (record) { + return { + style: { + 'background-color': this.highlightKey === record.standardNumber ? '#E6F4FF' : 'transparent' + }, + on: { + mouseenter: () => { + this.highlightKey = record.standardNumber + }, + mouseleave: () => { + this.highlightKey = null + } + } + } + }, initData (ids) { // 只有一条数据,需要获取基础信息 if (this.ids.length > 1) { @@ -471,4 +488,8 @@ export default { } } } + +/deep/ table tbody tr:hover>td { + background-color: transparent !important; +}