展示大屏

This commit is contained in:
bb_pan 2025-02-10 10:41:46 +08:00
parent 6076bca996
commit c2b4076e9e
2 changed files with 32 additions and 19 deletions

View File

@ -26,7 +26,7 @@ const navMenuList = computed(() => {
// { name: '', routerName: 'orderManagementCz' },
// { name: '', routerName: 'accept-orders' },
{ name: '公告', routerName: 'enterpriseZone' },
// { name: '', routerName: 'big-screen' },
{ name: '数据大屏', routerName: 'big-screen' },
]
if (isType == 2)
return [
@ -36,7 +36,7 @@ const navMenuList = computed(() => {
{ name: '订单管理', routerName: 'orderManagement' },
{ name: '需求管理', routerName: 'sourcingNeed' },
{ name: '通知公告', routerName: 'enterpriseZone' },
// { name: '', routerName: 'big-screen' },
{ name: '数据大屏', routerName: 'big-screen' },
]
if (isType == 3)
@ -45,7 +45,7 @@ const navMenuList = computed(() => {
{ name: '装备共享大厅', routerName: 'equipList' },
{ name: '租赁需求大厅', routerName: 'parity' },
{ name: '通知公告', routerName: 'enterpriseZone' },
// { name: '', routerName: 'big-screen' },
{ name: '数据大屏', routerName: 'big-screen' },
]
})

View File

@ -42,19 +42,25 @@ const isShowLogout = computed(() => {
return store.token
})
watch(userInfo, (newValue, oldCount) => {
if (newValue.companyId) {
getCompanyListApi().then((res: any) => {
res.data.filter((e: any) => {
if (e.companyId == newValue.companyId) {
activeLoginCompanyName.value = e.companyName
}
})
}).catch((err: any) => {
console.log('🚀 ~ getCompanyListApi ~ err:', err)
})
}
}, { immediate: true })
watch(
userInfo,
(newValue, oldCount) => {
if (newValue.companyId) {
getCompanyListApi()
.then((res: any) => {
res.data.filter((e: any) => {
if (e.companyId == newValue.companyId) {
activeLoginCompanyName.value = e.companyName
}
})
})
.catch((err: any) => {
console.log('🚀 ~ getCompanyListApi ~ err:', err)
})
}
},
{ immediate: true },
)
// watch(token, (newValue, oldCount) => {
// if (newValue) {
// getUserListData()
@ -311,9 +317,16 @@ const onJumpUser = () => {
}
const onClickLogin = () => {
window.location.replace(
'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
)
if (import.meta.env.VITE_API_URL == '/proxyApi') {
router.push('/login') // -
} else {
// -
setTimeout(() => {
window.location.replace(
'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
)
}, 500)
}
}
//