ggooalice 2 лет назад
Родитель
Сommit
a025bdbbfc

+ 8 - 8
fhKeeper/formulahousekeeper/octopus/src/main.js

@@ -186,18 +186,18 @@ router.beforeEach((to, from, next) => {
                             
                         } 
                     }
-                    console.log(arr, '')
+                    console.log(arr, 'arr')
                     getRoutes = arr;
 
                     //同步企业微信考勤打卡的情况下,根据深圳赛元微电子的要求,屏蔽项目报告审核模块
-                    if (user.timeType.syncCorpwxTime == 1) {
-                        getRoutes = getRoutes.filter(r=>{return r.name != '项目报告审核'});
-                    }
+                    // if (user.timeType.syncCorpwxTime == 1) {
+                    //     getRoutes = getRoutes.filter(r=>{return r.name != '项目报告审核'});
+                    // }
                     //检查是否开启了自定义审批流
-                    if (user.timeType.reportWorkflow == 0) {
-                        getRoutes = getRoutes.filter(r=>{return r.name != '审批流设置'});
-                        console.log(getRoutes);
-                    }
+                    // if (user.timeType.reportWorkflow == 0) {
+                    //     getRoutes = getRoutes.filter(r=>{return r.name != '审批流设置'});
+                    //     console.log(getRoutes);
+                    // }
                     global.antRouter = fixedRouter.concat(getRoutes);
                     router.addRoutes(fixedRouter.concat(getRoutes));
                     console.log(router);

+ 1 - 1
fhKeeper/formulahousekeeper/octopus/src/routes.js

@@ -266,7 +266,7 @@ export const allRouters = [//组织架构
     {
         path: '/',
         component: Home,
-        name: '客户管理',
+        name: '项目管理',
         iconCls: 'iconfont firerock-iconkehu',
         leaf: true,
         children: [