update 我的消息未读增加底色
This commit is contained in:
@@ -576,3 +576,9 @@ export const ClauseUsableRange = new EsEnums({
|
|||||||
DOMESTIC: { text: '国标', value: '1' },
|
DOMESTIC: { text: '国标', value: '1' },
|
||||||
ENTERPRISE: { text: '企标', value: '3' }
|
ENTERPRISE: { text: '企标', value: '3' }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 阅读状态
|
||||||
|
export const ReadFlag = {
|
||||||
|
UNREAD: { text: '未读', value: '0' },
|
||||||
|
READ: { text: '已读', value: '1' }
|
||||||
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
:rowClassName="rowClassName"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
@@ -82,6 +83,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import JTable from '@comp/jero/JTable'
|
import JTable from '@comp/jero/JTable'
|
||||||
|
import { ReadFlag } from '@/enums/commonEnums'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserAnnouncementList',
|
name: 'UserAnnouncementList',
|
||||||
@@ -179,6 +181,10 @@ export default {
|
|||||||
this.language = localStorage.getItem('language') || ''
|
this.language = localStorage.getItem('language') || ''
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 未读的高亮
|
||||||
|
rowClassName (record) {
|
||||||
|
return record.readFlag === ReadFlag.UNREAD.value ? 'row-unread' : ''
|
||||||
|
},
|
||||||
// 跳转详情
|
// 跳转详情
|
||||||
handleGoDetail (record) {
|
handleGoDetail (record) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
@@ -308,4 +314,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
@import '~@assets/less/common.less';
|
@import '~@assets/less/common.less';
|
||||||
|
/deep/ .row-unread > td {
|
||||||
|
background-color: #F9F9F9;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user