update 我的消息未读增加底色

This commit is contained in:
danshihao
2024-03-04 13:50:18 +08:00
parent 5c2e84d42d
commit ccc04bd10d
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -576,3 +576,9 @@ export const ClauseUsableRange = new EsEnums({
DOMESTIC: { text: '国标', value: '1' },
ENTERPRISE: { text: '企标', value: '3' }
})
// 阅读状态
export const ReadFlag = {
UNREAD: { text: '未读', value: '0' },
READ: { text: '已读', value: '1' }
}
@@ -58,6 +58,7 @@
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowClassName="rowClassName"
@change="handleTableChange">
<!-- 操作 -->
@@ -82,6 +83,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import JTable from '@comp/jero/JTable'
import { ReadFlag } from '@/enums/commonEnums'
export default {
name: 'UserAnnouncementList',
@@ -179,6 +181,10 @@ export default {
this.language = localStorage.getItem('language') || ''
},
methods: {
// 未读的高亮
rowClassName (record) {
return record.readFlag === ReadFlag.UNREAD.value ? 'row-unread' : ''
},
// 跳转详情
handleGoDetail (record) {
this.$router.push({
@@ -308,4 +314,7 @@ export default {
</script>
<style scoped lang="less">
@import '~@assets/less/common.less';
/deep/ .row-unread > td {
background-color: #F9F9F9;
}
</style>