展示大屏
This commit is contained in:
parent
6076bca996
commit
c2b4076e9e
|
|
@ -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' },
|
||||
]
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -42,19 +42,25 @@ const isShowLogout = computed(() => {
|
|||
return store.token
|
||||
})
|
||||
|
||||
watch(userInfo, (newValue, oldCount) => {
|
||||
watch(
|
||||
userInfo,
|
||||
(newValue, oldCount) => {
|
||||
if (newValue.companyId) {
|
||||
getCompanyListApi().then((res: any) => {
|
||||
getCompanyListApi()
|
||||
.then((res: any) => {
|
||||
res.data.filter((e: any) => {
|
||||
if (e.companyId == newValue.companyId) {
|
||||
activeLoginCompanyName.value = e.companyName
|
||||
}
|
||||
})
|
||||
}).catch((err: any) => {
|
||||
})
|
||||
.catch((err: any) => {
|
||||
console.log('🚀 ~ getCompanyListApi ~ err:', err)
|
||||
})
|
||||
}
|
||||
}, { immediate: true })
|
||||
},
|
||||
{ immediate: true },
|
||||
)
|
||||
// watch(token, (newValue, oldCount) => {
|
||||
// if (newValue) {
|
||||
// getUserListData()
|
||||
|
|
@ -311,9 +317,16 @@ const onJumpUser = () => {
|
|||
}
|
||||
|
||||
const onClickLogin = () => {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
// 查看消息
|
||||
|
|
|
|||
Loading…
Reference in New Issue