【修改】消息通知加颜色区分

This commit is contained in:
fengachen
2021-12-29 17:25:39 +08:00
parent 18b7175922
commit bbb9b242ab
2 changed files with 29 additions and 2 deletions
+15 -1
View File
@@ -22,6 +22,12 @@
</a-tooltip>
</template>
<template slot="color-text" slot-scope="text,record">
<!-- 会议通知-->
<span :class="{'color-meeting':record.titile === '3','color-system':record.titile === '12' }">{{ text }}</span>
</template>
<span slot="action" class="action-span-cell" slot-scope="text, record">
<a @click="showAnnouncement(record)" style="margin-right: 8px">查看</a>
<a @click="haveRead(record)" v-if="record.readFlag === '0' ">已读</a>
@@ -103,7 +109,7 @@ export default {
align: 'center',
width: 180,
dataIndex: 'titile_dictText',
scopedSlots: {customRender: 'text'}
scopedSlots: {customRender: 'color-text'}
}, {
title: '内容',
align: 'center',
@@ -419,4 +425,12 @@ export default {
//width: 150px;
}
/*会议通知的颜色*/
.color-meeting {
color: #FF7200;
}
/*系统通知的消息*/
.color-system {
color: #690AF7;
}
</style>