Files
FreeERP.Antd.Admin/src/configs/menuConfig.tsx

51 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-01-05 17:06:16 +08:00
import { DashboardOutlined, UserOutlined } from '@ant-design/icons';
import type React from 'react';
/* cspell:disable */
const iconStyle: React.CSSProperties = { fontSize: 18 };
interface MenuDataItem {
name: string;
icon?: React.ReactNode;
path?: string;
hideInMenu?: boolean;
auth?: string;
children?: MenuDataItem[];
docUrl?: string;
}
//const docUrl = 'https://docs.qq.com/aio/DS2NCRFFseG9Ma3Ja?p=';
const userMenu: MenuDataItem = {
name: '用户管理',
icon: <UserOutlined style={iconStyle} />,
children: [
{ name: '用户管理', path: '/user/list', auth: '' },
// { name: '岗位角色', path: '/user/group', auth: 'SF_ERP_GROUP_VIEW' },
],
};
const staffMenu: MenuDataItem = {
name: '后台用户',
icon: <UserOutlined 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' },
],
};
const asideMenuConfig: MenuDataItem[] = [
{
name: '系统看板',
// path: '/',
icon: <DashboardOutlined style={iconStyle} />,
children: [{ name: '系统主页', path: '/home/index', auth: '' }],
},
userMenu,
staffMenu,
];
export { asideMenuConfig };