From b14d8329e757882ea6d44eb7b24f5e2597c5fda3 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Thu, 18 Nov 2021 12:02:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=20=E6=94=AF=E5=87=BA?= =?UTF-8?q?=E5=90=88=E5=90=8C=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/UserAnnouncementList.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/system/UserAnnouncementList.vue b/src/views/system/UserAnnouncementList.vue index 9e4f1b8..7949513 100644 --- a/src/views/system/UserAnnouncementList.vue +++ b/src/views/system/UserAnnouncementList.vue @@ -237,11 +237,20 @@ export default { } else if(record.openType === 'url') { console.log(record.openPage,'url') const param = JSON.parse(record.busId) - // 如果是url 跳转页面 - this.$router.push({ - path:record.openPage, - query:param - }) + if(Object.prototype.hasOwnProperty.call(param, 'contractType') && param.contractType === 2){ + // 如果是支出合同的就去支出合同 多加一个判断 是不想再去新加一个消息模板 + this.$router.push({ + path:'/contractManagement/ExpenditureContractDetail', + query:param + }) + }else { + // 如果是url 跳转页面 + this.$router.push({ + path:record.openPage, + query:param + }) + } + }else { this.$refs.ShowAnnouncement.detail(record) }