From 549dda54b363cecd00e93d68c776405b0a9da760 Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 21 Oct 2022 11:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5=EF=BC=9A?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=80=BB=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mynoticeView/components/NoticeList.vue | 66 ++++++++++++------- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/front/src/views/mynoticeView/components/NoticeList.vue b/front/src/views/mynoticeView/components/NoticeList.vue index a129075a..642e49df 100644 --- a/front/src/views/mynoticeView/components/NoticeList.vue +++ b/front/src/views/mynoticeView/components/NoticeList.vue @@ -232,35 +232,53 @@ const tabTypeObj = { // 会议室后台 const goPage = (item) => { - let typeText = typeObj[item.type]; - if (typeText) { + if (item.jumpUrl && item.type !== 12) { + let typeText = typeObj[item.type]; + console.log('item------------>', item); console.log('typeText类型------------>', typeText); - // 是后台,跳转到后台相关页面 - if (typeText.indexOf('后台') !== -1) { - let _applyState = item.applyState - let _page = pageObj[typeText][_applyState] - window.open(window.SITE_CONFIG.backUrl + `/#/${_page}`) - } else if (typeText.indexOf('前台') !== -1) { - if (typeText == '会议室前台') { - router.push({ - path: '/DetailsPageconetent', - query: { - select: '基础设施', - formPage: 'noticePage' - }, - }) - } else { + // "http://192.168.124.236:9796/#/personalCenter?tabTypeName=能力申请" + let _url = item.jumpUrl && item.jumpUrl.split('#') + let openType = '_self'; + // 如果是跳转到后台管理,重新打开页面 + if (typeText && typeText.indexOf('后台') !== -1) { + openType = '_blank' + } else { + if (_url[1] && _url[1].indexOf('personalCenter') !== -1) { window.sessionStorage.setItem('type', JSON.stringify('apply')) - router.push({ - path: '/personalCenter', - query: { - tabTypeName: tabTypeObj[typeText] || '能力申请', - } - }) } - } + window.open(item.jumpUrl, openType) + } + return; + // if (typeText) { + // console.log('typeText类型------------>', typeText); + // // 是后台,跳转到后台相关页面 + // if (typeText.indexOf('后台') !== -1) { + // let _applyState = item.applyState + // let _page = pageObj[typeText][_applyState] + // window.open(window.SITE_CONFIG.backUrl + `/#/${_page}`) + // } else if (typeText.indexOf('前台') !== -1) { + // if (typeText == '会议室前台') { + // router.push({ + // path: '/DetailsPageconetent', + // query: { + // select: '基础设施', + // formPage: 'noticePage' + // }, + // }) + // } else { + // window.sessionStorage.setItem('type', JSON.stringify('apply')) + // router.push({ + // path: '/personalCenter', + // query: { + // tabTypeName: tabTypeObj[typeText] || '能力申请', + // } + // }) + // } + + // } + // } } // 更改消息状态