展示大屏
This commit is contained in:
parent
6076bca996
commit
c2b4076e9e
|
|
@ -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' },
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看消息
|
// 查看消息
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue