[update] 修改公告弹框为截止时间之前未读才弹框
This commit is contained in:
@@ -228,15 +228,15 @@ export default {
|
||||
this.loadData(1)
|
||||
},
|
||||
mounted () {
|
||||
// 2023-07变更:调接口看有没有超出消息提醒截止时间未读的,如果有则弹框提示
|
||||
// 2023-07变更:调接口看有没有没到提醒截止时间未读的,如果有则弹框提示
|
||||
getAction(this.url.getUnreadMessage, {}).then(res => {
|
||||
if (res.success) {
|
||||
if (res.result && res.result.length > 0) {
|
||||
const messageArr = res.result.map(item => item.msgContent)
|
||||
const anntIds = res.result.map(item => item.anntId).join(',')
|
||||
// 说明有超时未读的消息
|
||||
// 说明有未读的消息
|
||||
this.$warning({
|
||||
title: '超时未读提醒',
|
||||
title: '未读提醒',
|
||||
content: h => h(
|
||||
'div',
|
||||
messageArr.map((item, index) => { return h('p', { key: index }, item)})
|
||||
|
||||
Reference in New Issue
Block a user