完善项目权限前置依赖保存校验

- 以接口权限定义中的 prerequisite_permissions 作为前置依赖单一事实源,生成运行时前置权限映射\n- 保存项目角色权限前预检缺失前置权限与受影响下游权限,未确认时返回 409 调整详情\n- 确认保存时自动合并补齐前置权限与取消下游权限,并提供有效权限矩阵读取接口\n- 前端角色权限编辑改为保存时执行依赖校验,弹窗展示需补充前置权限和受影响下游权限\n- 新增编辑权限取消按钮,清理权限选择即时确认弹窗残留\n- 补充后端接口测试、前端权限编辑测试与优化设计文档
This commit is contained in:
Cheng Zhou
2026-06-04 16:29:44 +08:00
parent 02f2c6660b
commit d6452e3f9d
13 changed files with 1089 additions and 80 deletions
+10
View File
@@ -124,6 +124,7 @@ export interface Site {
pi_name?: string | null;
phone?: string | null;
contact?: string | null;
contact_display?: string | null;
contact_phone?: string | null;
enrollment_target?: number | null;
enrollment_plan_start_date?: string | null;
@@ -148,6 +149,15 @@ export interface ApiEndpointPermissionsUpdate {
};
}
export interface ApiOperation {
operation_key: string;
module: string;
action: string;
description: string;
default_roles: string[];
prerequisite_permissions: string[];
}
// 监控指标
export interface PermissionCheckMetrics {
total_checks: number;