[fix 83057] 消息增加新标签页打开page

This commit is contained in:
danshihao
2024-03-26 18:04:58 +08:00
parent f028b5b2b3
commit 136baa0c22
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -9,7 +9,8 @@
>
<template slot="footer">
<a-button key="back" @click="handleCancel">关闭</a-button>
<a-button v-if="record.openType==='url'" type="primary" @click="toHandle">去处理</a-button>
<!-- url是当前页跳转page新标签页跳转 -->
<a-button v-if="['url', 'page'].indexOf(record.openType) !== -1" type="primary" @click="toHandle">去处理</a-button>
</template>
<a-card class="daily-article" :loading="loading">
<a-card-meta
@@ -81,6 +82,9 @@ export default {
this.visible = false
// 链接跳转
this.$router.push({ path: this.record.openPage })
} else if (this.record.openType === 'page') {
this.visible = false
this.$openPageNewSheet({ path: this.record.openPage })
}
}
}
@@ -201,6 +201,10 @@ export default {
this.$router.push({ path: record.openPage })
// 如果是跳转其他页面请求详情(作用是为了标记已读)
getMsgDetail({ id: record.id })
} else if (record.openType === 'page') {
this.$openPageNewSheet({ path: record.openPage })
// 如果是跳转其他页面请求详情(作用是为了标记已读)
getMsgDetail({ id: record.id })
} else {
this.$router.push({
path: '/isps/userAnnouncementDetail',