Compare commits

...

2 Commits

1 changed files with 42 additions and 24 deletions

View File

@ -232,35 +232,53 @@ const tabTypeObj = {
// //
const goPage = (item) => { const goPage = (item) => {
let typeText = typeObj[item.type]; if (item.jumpUrl && item.type !== 12) {
if (typeText) { let typeText = typeObj[item.type];
console.log('item------------>', item);
console.log('typeText类型------------>', typeText); console.log('typeText类型------------>', typeText);
// // "http://192.168.124.236:9796/#/personalCenter?tabTypeName="
if (typeText.indexOf('后台') !== -1) { let _url = item.jumpUrl && item.jumpUrl.split('#')
let _applyState = item.applyState let openType = '_self';
let _page = pageObj[typeText][_applyState] //
window.open(window.SITE_CONFIG.backUrl + `/#/${_page}`) if (typeText && typeText.indexOf('后台') !== -1) {
} else if (typeText.indexOf('前台') !== -1) { openType = '_blank'
if (typeText == '会议室前台') { } else {
router.push({ if (_url[1] && _url[1].indexOf('personalCenter') !== -1) {
path: '/DetailsPageconetent',
query: {
select: '基础设施',
formPage: 'noticePage'
},
})
} else {
window.sessionStorage.setItem('type', JSON.stringify('apply')) 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] || '',
// }
// })
// }
// }
// }
} }
// //