Compare commits

...

2 Commits

1 changed files with 42 additions and 24 deletions

View File

@ -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] || '',
// }
// })
// }
// }
// }
}
//