2026-01-16 16:47:12 +08:00
|
|
|
import { BarsOutlined, DashboardOutlined, TeamOutlined, UserOutlined } from '@ant-design/icons';
|
2026-01-05 17:06:16 +08:00
|
|
|
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} />,
|
2026-01-16 16:47:12 +08:00
|
|
|
children: [{ name: '用户信息', path: '/user/list', auth: '' }], //SF_ERP_USER_VIEW
|
2026-01-05 17:06:16 +08:00
|
|
|
};
|
2026-01-16 16:47:12 +08:00
|
|
|
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} />,
|
2026-01-05 17:06:16 +08:00
|
|
|
children: [
|
2026-01-16 16:47:12 +08:00
|
|
|
{ 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
|
2026-01-05 17:06:16 +08:00
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const asideMenuConfig: MenuDataItem[] = [
|
|
|
|
|
{
|
|
|
|
|
name: '系统看板',
|
|
|
|
|
// path: '/',
|
|
|
|
|
icon: <DashboardOutlined style={iconStyle} />,
|
|
|
|
|
children: [{ name: '系统主页', path: '/home/index', auth: '' }],
|
|
|
|
|
},
|
|
|
|
|
userMenu,
|
2026-01-16 16:47:12 +08:00
|
|
|
companyMenu,
|
|
|
|
|
authMenu,
|
2026-01-05 17:06:16 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export { asideMenuConfig };
|