展示大屏

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

View File

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