From 0ed65d2b6b8dbfeaeda4720964ee5fbf3f42197e Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期一, 04 八月 2025 16:03:54 +0800 Subject: [PATCH] feat(bigScreen): 添加大屏故障页面并更新相关路由和权限- 在 pageEnum.ts 中添加 BIG_FAULT 路径 - 在 permissionGuard.ts 中添加 BIG_FAULT_PATH 到白名单路径列表 - 更新路由配置,将 BigFault组件指向新的 BigFault-tjt.vue 文件 - 新增 BigEqp-two.vue 组件,用于展示设备分割图像 --- src/router/routes/index.ts | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 2128c2e..853938a 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -42,7 +42,7 @@ export const BigScreen: AppRouteRecordRaw = { path: '/bigScreen', name: 'BigScreen', - component: () => import('/@/views/dry/bigScreen/BigWorkShop.vue'), + component: () => import('/@/views/dry/bigScreen/BigWorkShop-tjt.vue'), meta: { title: t('big.screen.workshop'), }, @@ -58,7 +58,7 @@ export const BigEqp: AppRouteRecordRaw = { path: '/bigEqp', name: 'BigEqp', - component: () => import('/@/views/dry/bigScreen/BigEqp.vue'), + component: () => import('/src/views/dry/bigScreen/BigEqp-tjt.vue'), meta: { title: t('big.screen.eqp'), }, @@ -78,6 +78,15 @@ component: () => import('/@/views/dry/bigScreen/BigFaultCloud.vue'), meta: { title: t('big.screen.faultCloud'), + }, +} + +export const BigFault: AppRouteRecordRaw = { + path: '/bigFault', + name: 'BigFault', + component: () => import('/@/views/dry/bigScreen/BigFault-tjt.vue'), + meta: { + title: t('big.screen.fault'), }, } @@ -108,4 +117,4 @@ } // Basic routing without permission -export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE, TokenLoginRoute, Oauth2LoginRoute,BigScreen,BigScreenN,BigEqp,BigEqpCloud,BigFaultCloud] +export const basicRoutes = [LoginRoute, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE, TokenLoginRoute, Oauth2LoginRoute,BigScreen,BigScreenN,BigEqp,BigEqpCloud,BigFaultCloud,BigFault] -- Gitblit v1.9.3