feat: 新增菜单管理页面

This commit is contained in:
xlsea
2024-09-03 12:19:57 +08:00
parent 89f5e8577e
commit 8ab7ee2268
130 changed files with 1797 additions and 103 deletions

24
src/constants/business.ts Normal file
View File

@ -0,0 +1,24 @@
import { transformRecordToOption } from '@/utils/common';
export const enableStatusRecord: Record<Api.Common.EnableStatus, string> = {
'0': '启用',
'1': '禁用'
};
export const enableStatusOptions = transformRecordToOption(enableStatusRecord);
export const menuTypeRecord: Record<Api.System.MenuType, string> = {
M: '目录',
C: '菜单',
F: '按钮'
};
export const menuTypeOptions = transformRecordToOption(menuTypeRecord);
/** menu icon type */
export const menuIconTypeRecord: Record<Api.System.IconType, string> = {
'1': 'iconify',
'2': '本地图标'
};
export const menuIconTypeOptions = transformRecordToOption(menuIconTypeRecord);