feat: 添加权限管理

This commit is contained in:
2025-02-11 16:37:08 +08:00
parent 0cb6c80d57
commit 6de042b07e
27 changed files with 6095 additions and 94 deletions

58
types/system.d.ts vendored
View File

@@ -51,7 +51,7 @@ export type DepartmentInfo = {
/**部门名称 */
name: string;
/**父部门ID */
parentId: string;
parent_id: string;
/**排序 */
sort: number;
/**部门电话 */
@@ -63,3 +63,59 @@ export type DepartmentInfo = {
/**备注信息 */
remark: string;
};
/**权限信息类型 */
export type PermissionInfo = {
/** 菜单ID */
id: string;
/** 创建人 */
create_by: string;
/** 创建时间 */
create_time: string;
/** 更新人 */
update_by: string;
/** 更新时间 */
update_time: string;
/** 菜单类型0代表菜单、1代表按钮 */
menu_type: number;
/** 父菜单ID */
parent_id: string;
/** 菜单标题 */
title: string;
/** 菜单名称(用于路由名称) */
name: string;
/** 菜单路径 */
path: string;
/** 组件路径 */
component: string;
/** 菜单排序 */
rank: number;
/** 重定向路径 */
redirect: string | null;
/** 菜单图标 */
icon: string;
/** 额外图标 */
extra_icon: string | null;
/** 进入页面过渡动画 */
enter_transition: string | null;
/** 离开页面过渡动画 */
leave_transition: string | null;
/** 激活路径 */
active_path: string | null;
/** 权限标识 */
auths: string;
/** 内嵌框架地址 */
frame_src: string | null;
/** 内嵌框架加载状态 */
frame_loading: boolean;
/** 是否缓存页面 */
keep_alive: boolean;
/** 是否隐藏标签页 */
hidden_tag: boolean;
/** 是否固定标签页 */
fixed_tag: boolean;
/** 是否显示菜单链接 */
show_link: boolean;
/** 是否显示父菜单 */
show_parent: boolean;
};