Admin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DashboardOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import { BarsOutlined, DashboardOutlined, TeamOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import type React from 'react';
|
||||
|
||||
/* cspell:disable */
|
||||
@@ -19,20 +19,23 @@ interface MenuDataItem {
|
||||
const userMenu: MenuDataItem = {
|
||||
name: '用户管理',
|
||||
icon: <UserOutlined style={iconStyle} />,
|
||||
children: [
|
||||
{ name: '用户管理', path: '/user/list', auth: '' },
|
||||
// { name: '岗位角色', path: '/user/group', auth: 'SF_ERP_GROUP_VIEW' },
|
||||
],
|
||||
children: [{ name: '用户信息', path: '/user/list', auth: '' }], //SF_ERP_USER_VIEW
|
||||
};
|
||||
const staffMenu: MenuDataItem = {
|
||||
name: '后台用户',
|
||||
icon: <UserOutlined style={iconStyle} />,
|
||||
const companyMenu: MenuDataItem = {
|
||||
name: '企业管理',
|
||||
icon: <TeamOutlined style={iconStyle} />,
|
||||
children: [{ name: '企业信息', path: '/company/list', auth: '' }], //SF_ERP_COMPANY_VIEW
|
||||
};
|
||||
const authMenu: MenuDataItem = {
|
||||
name: '权限管理',
|
||||
icon: <BarsOutlined style={iconStyle} />,
|
||||
children: [
|
||||
{ name: '组织架构', path: '/staff/dep', auth: 'SF_ERP_DEPART_VIEW' },
|
||||
{ name: '岗位角色', path: '/staff/group', auth: 'SF_ERP_GROUP_VIEW' },
|
||||
{ name: '员工管理', path: '/staff/list', auth: 'SF_ERP_STAFF_VIEW' },
|
||||
{ name: '我的权限', path: '/staff/my', auth: 'SF_MY_RIGHT_VIEW' },
|
||||
// { name: '日志管理', path: '/system/record', auth: 'SF_ERP_LOG_VIEW' },
|
||||
{ name: '管理员信息', path: '/staff/list', auth: '' }, //SF_ERP_ADMIN_VIEW
|
||||
{ name: '组织架构', path: '/staff/dep', auth: '' }, //SF_ERP_DEPART_VIEW
|
||||
{ name: '岗位角色', path: '/staff/group', auth: '' }, //SF_ERP_GROUP_VIEW
|
||||
{ name: '我的权限', path: '/staff/my', auth: '' }, //SF_MY_RIGHT_VIEW
|
||||
{ name: '登录日志', path: '/staff/login', auth: '' }, //SF_LOGIN_LOG_VIEW
|
||||
{ name: '操作日志', path: '/staff/sys', auth: '' }, //SF_OPERATE_LOG_VIEW
|
||||
],
|
||||
};
|
||||
|
||||
@@ -44,7 +47,8 @@ const asideMenuConfig: MenuDataItem[] = [
|
||||
children: [{ name: '系统主页', path: '/home/index', auth: '' }],
|
||||
},
|
||||
userMenu,
|
||||
staffMenu,
|
||||
companyMenu,
|
||||
authMenu,
|
||||
];
|
||||
|
||||
export { asideMenuConfig };
|
||||
|
||||
Reference in New Issue
Block a user