diff --git a/config/routes.js b/config/routes.js index cdfdd5a..c71a7e7 100644 --- a/config/routes.js +++ b/config/routes.js @@ -55,11 +55,33 @@ export default [ name: 'allstaffuph', component: './hrefficiency_allstaffuph/AllStaffUPHList', }, - { - path: '/topnavbar00/hrefficiency/workreport', - // icon: 'bank', - name: 'workreport', - component: './hrefficiency_workreport/WorkReport', + { + path: '/topnavbar00/hrefficiency/workreport', + // icon: 'bank', + name: 'workreport', + component: './hrefficiency_workreport/WorkReport', + }, + { + path: '/topnavbar00/hrefficiency/system', + name: 'system', + component: './hrefficiency_system/SystemContentList', + routes: [ + { + path: '/topnavbar00/hrefficiency/system/systemOrganization', + name: 'systemOrganization', + component: './hrefficiency_system/systemOrganization/SystemOrganizationList', + }, + { + path: '/topnavbar00/hrefficiency/system/systemRole', + name: 'systemRole', + component: './hrefficiency_system/systemRole/SystemRoleList', + }, + { + path: '/topnavbar00/hrefficiency/system/systemMenu', + name: 'systemMenu', + component: './hrefficiency_system/systemMenu/SystemMenuList', + }, + ] }, // 隐患排查 { diff --git a/src/locales/zh-CN/menu.js b/src/locales/zh-CN/menu.js index 3b49638..770da9b 100644 --- a/src/locales/zh-CN/menu.js +++ b/src/locales/zh-CN/menu.js @@ -1,7 +1,20 @@ export default { 'menu.login': '登录', 'menu.home': '首页', - + + // 效率管理相关菜单 + 'menu.topnavbar00.hrefficiency': '效率管理', + 'menu.topnavbar00.hrefficiency.timesheet': '工时仪表盘', + 'menu.topnavbar00.hrefficiency.staffsheet': '员工仪表盘', + 'menu.topnavbar00.hrefficiency.staffuph': '员工效率监控', + 'menu.topnavbar00.hrefficiency.deptuph': '部门效率监控', + 'menu.topnavbar00.hrefficiency.allstaffuph': '全员效率监控', + 'menu.topnavbar00.hrefficiency.workreport': '工作报表', + 'menu.topnavbar00.hrefficiency.system': '系统管理', + 'menu.topnavbar00.hrefficiency.system.organization': '组织管理', + 'menu.topnavbar00.hrefficiency.system.role': '角色配置', + 'menu.topnavbar00.hrefficiency.system.menu': '菜单配置', + 'menu.topnavbar00': '业务导航', 'menu.topnavbar00.sysmenu': '系统配置', diff --git a/src/pages/nav_system_content/SystemContentList.js b/src/pages/nav_system_content/SystemContentList.js index fd335d7..db805a0 100644 --- a/src/pages/nav_system_content/SystemContentList.js +++ b/src/pages/nav_system_content/SystemContentList.js @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react' +import React, { useState, useEffect } from 'react'; import { history, Outlet, useLocation, matchRoutes, useModel } from '@umijs/max' import { Menu, Tabs, Select } from 'antd' import './SystemContentList.less' diff --git a/src/pages/topnavbar/TopNavBar.js b/src/pages/topnavbar/TopNavBar.js index d50ba83..9bb9798 100644 --- a/src/pages/topnavbar/TopNavBar.js +++ b/src/pages/topnavbar/TopNavBar.js @@ -43,6 +43,28 @@ const menuItem = [ key: '/topnavbar00/hrefficiency/hiddentrouble', // icon: , }, + { + label: '系统管理', + key: '/topnavbar00/hrefficiency/system', + // icon: , + children: [ + { + label: '组织管理', + key: '/topnavbar00/hrefficiency/system/systemOrganization', + // icon: , + }, + { + label: '角色配置', + key: '/topnavbar00/hrefficiency/system/systemRole', + // icon: , + }, + { + label: '菜单配置', + key: '/topnavbar00/hrefficiency/system/systemMenu', + // icon: , + }, + ] + }, ] }, ]