feat: 菜单按业务域重排为7组 + 预警中心更名异常告警 + AGV独立权限码与齐套测算分账明细

This commit is contained in:
SunYF
2026-11-15 22:34:45 +08:00
parent 1e92b2a596
commit b32ec7c03d
49 changed files with 1040 additions and 435 deletions
+9
View File
@@ -84,6 +84,15 @@ var pathPermMap = map[string]string{
"POST:/api/v1/station-templates": "produce.station:edit",
"POST:/api/v1/station-templates/delete": "produce.station:edit",
"POST:/api/v1/stations/apply-template": "produce.station:edit",
// AGV 两个菜单拆码后各自独立校验:
// produce.agv = AGV管理(三段链确认 / 取消 / 重试);produce.agv.manual = 人工派车(用车生命周期)。
// 两边共用的只读点位与刷新接口(/agv/points、/agv/refresh)不映射,避免互相挡住。
"POST:/api/v1/agv/confirm": "produce.agv",
"POST:/api/v1/agv/cancel": "produce.agv",
"POST:/api/v1/agv/retry": "produce.agv",
"POST:/api/v1/agv/free-dispatch": "produce.agv.manual",
"POST:/api/v1/agv/chain/next": "produce.agv.manual",
"POST:/api/v1/agv/chain/end": "produce.agv.manual",
}
// userHasPerm 校验当前登录用户是否拥有某权限码(SUPER_ADMIN 或 * 放行)。