Răsfoiți Sursa

运营会议跳转

Co-authored-by: Copilot <copilot@github.com>
Zimo 1 zi în urmă
părinte
comite
27350675e0

+ 3 - 1
src/layout/components/Menu/src/components/useRenderMenuItem.tsx

@@ -62,7 +62,9 @@ export const useRenderMenuItem = () =>
               ].includes(v.meta?.title)
             )
           } else if (currentSource === 'yyhy') {
-            return !v.meta?.hidden && ['生产运营双周会'].includes(v.meta?.title)
+            return (
+              !v.meta?.hidden && ['生产运营双周会', '数据填报', '数据汇总'].includes(v.meta?.title)
+            )
           } else {
             return !v.meta?.hidden
           }

+ 1 - 1
src/layout/components/TagsView/src/helper.ts

@@ -15,7 +15,7 @@ export const filterAffixTags = (routes: AppRouteRecordRaw[], parentPath = '') =>
       route.meta.affix = true
     } else if (currentSource === 'qhse' && tagPath === '/qhse/measure/ledger') {
       route.meta.affix = true
-    } else if (currentSource === 'yyhy' && tagPath === '/operation-meeting') {
+    } else if (currentSource === 'yyhy' && tagPath === '/operation-meeting/fill') {
       route.meta.affix = true
     }
     if (meta?.affix) {

+ 3 - 3
src/permission.ts

@@ -121,7 +121,7 @@ router.beforeEach(async (to, from, next) => {
 
       if (source && source === 'yyhy') {
         sessionStorage.setItem('LOGIN_SOURCE', source as string)
-        next({ path: '/operation-meeting' })
+        next({ path: '/operation-meeting/fill' })
       }
 
       next({ path: '/' })
@@ -189,7 +189,7 @@ router.beforeEach(async (to, from, next) => {
 
       if (source && source === 'yyhy') {
         sessionStorage.setItem('LOGIN_SOURCE', source as string)
-        next({ path: '/operation-meeting' })
+        next({ path: '/operation-meeting/fill' })
       }
 
       next({ path: '/index' })
@@ -219,7 +219,7 @@ router.beforeEach(async (to, from, next) => {
       } else if (source && source === 'qhse') {
         next(`/login?redirect=/qhse/measure/ledger`)
       } else if (source && source === 'yyhy') {
-        next(`/login?redirect=/operation-meeting`)
+        next(`/login?redirect=/operation-meeting/fill`)
       } else next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
     }
   }