新增系统管理页面

main
yupeng 1 month ago
parent daf7b79cf8
commit 07f0d15e4d

@ -55,11 +55,33 @@ export default [
name: 'allstaffuph', name: 'allstaffuph',
component: './hrefficiency_allstaffuph/AllStaffUPHList', component: './hrefficiency_allstaffuph/AllStaffUPHList',
}, },
{ {
path: '/topnavbar00/hrefficiency/workreport', path: '/topnavbar00/hrefficiency/workreport',
// icon: 'bank', // icon: 'bank',
name: 'workreport', name: 'workreport',
component: './hrefficiency_workreport/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',
},
]
}, },
// 隐患排查 // 隐患排查
{ {

@ -1,7 +1,20 @@
export default { export default {
'menu.login': '登录', 'menu.login': '登录',
'menu.home': '首页', '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': '业务导航',
'menu.topnavbar00.sysmenu': '系统配置', 'menu.topnavbar00.sysmenu': '系统配置',

@ -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 { history, Outlet, useLocation, matchRoutes, useModel } from '@umijs/max'
import { Menu, Tabs, Select } from 'antd' import { Menu, Tabs, Select } from 'antd'
import './SystemContentList.less' import './SystemContentList.less'

@ -43,6 +43,28 @@ const menuItem = [
key: '/topnavbar00/hrefficiency/hiddentrouble', key: '/topnavbar00/hrefficiency/hiddentrouble',
// icon: <SettingOutlined />, // icon: <SettingOutlined />,
}, },
{
label: '系统管理',
key: '/topnavbar00/hrefficiency/system',
// icon: <SettingOutlined />,
children: [
{
label: '组织管理',
key: '/topnavbar00/hrefficiency/system/systemOrganization',
// icon: <SettingOutlined />,
},
{
label: '角色配置',
key: '/topnavbar00/hrefficiency/system/systemRole',
// icon: <SettingOutlined />,
},
{
label: '菜单配置',
key: '/topnavbar00/hrefficiency/system/systemMenu',
// icon: <SettingOutlined />,
},
]
},
] ]
}, },
] ]

Loading…
Cancel
Save