feat(role): 根据role判断用户的权限

This commit is contained in:
sophie committed 2026-09-18 09:21:04 +08:00
1 parent 80d78130f8
commit a24bd94d43
93 files changed
+4472 -387

No files matched your search

+95 -2
View File
@@ -1929,6 +1929,97 @@
"updateSuccess": "權限更新成功"
}
},
"permRoles": {
"subtitle": "依權限組設定可用應用與應用內能力;每位使用者只選一個角色。",
"create": "新增權限組",
"tabs": {
"roles": "角色設定",
"matrix": "權限核對"
},
"headers": {
"name": "權限組",
"description": "說明",
"members": "人數",
"apps": "應用"
},
"memberCount": "{count} 人",
"allApps": "全部應用(隱含)",
"badge": {
"default": "預設",
"admin": "管理員"
},
"matrixHint": "矩陣唯讀,僅供核對;請編輯角色或調整成員來改權限。",
"directGrantDisabled": "已改為依權限組授權,請在角色設定勾選應用或調整成員。",
"useRolePage": "請到「應用權限」依角色勾選應用,不再依人授權。",
"userFormHint": "應用入口與應用內能力來自此角色,部門只用於篩選。",
"userRoleConfirmTitle": "確認調整角色",
"userRoleConfirm": "確認將此使用者調整到所選權限組?其可用應用會立即依該組重寫。",
"userAdminConfirm": "確認調整管理員身分?選人視窗不能新增或移出管理員,此處會立即改寫權限。",
"batchRoleConfirm": "確認批次改角色?這些人的可用應用會立即依新權限組重寫。",
"edit": {
"title": "編輯權限組",
"createTitle": "新增權限組",
"subtitle": "儲存後立即對該組全部成員生效。",
"code": "編碼",
"codeHint": "小寫字母開頭,僅字母數字底線",
"name": "名稱",
"description": "說明",
"isDefault": "新使用者預設角色",
"apps": "可用應用",
"appsHint": "勾選應用即開通入口。有功能權限的應用點右側「N 項能力」展開後再勾選。",
"adminAllApps": "管理員應用入口隱含全開;仍可收緊下方功能權限。",
"features": "功能權限",
"selectedCount": "已選 {count}",
"featureCount": "{count} 項能力",
"filterPlaceholder": "篩選應用",
"noMatch": "沒有符合的應用"
},
"confirm": {
"title": "確認調整成員",
"subtitle": "將把下列人員改入「{name}」。",
"added": "改入 {count} 人",
"removed": "移出 {count} 人",
"stolenHint": "將失去原角色權限",
"backToDefault": "取消勾選的人會回到預設權限組。",
"noChanges": "勾選與目前成員相同,沒有需要確認的變更。",
"apply": "確認調整"
},
"picker": {
"title": "選擇「{name}」成員",
"subtitle": "左側部門只用於篩選。全選只勾草稿,確定後仍會跳出確認。"
},
"saveConfirm": {
"title": "儲存權限組",
"message": "該組現有 {count} 人,儲存後其應用入口會立即依新勾選重寫。"
},
"msg": {
"nameRequired": "請填寫權限組名稱",
"codeInvalid": "編碼須為小寫字母開頭的字母數字底線",
"saved": "權限組已儲存",
"deleted": "權限組已刪除",
"systemLocked": "內建權限組不能刪除",
"adminLocked": "管理員成員請在使用者管理中單獨調整並確認",
"membersUpdated": "成員已更新"
},
"features": {
"training_hr_manage": "HR 管理",
"shipping_notice_force_create": "強制新建重複單據",
"shipping_notice_audit_sensitive_read": "讀取敏感稽核",
"shipping_notice_xfa_split_rule_edit": "編輯 XFA 拆分規則",
"shipping_notice_xfa_split_rule_preview": "預覽拆分",
"shipping_notice_xfa_split_rule_publish": "發佈拆分規則",
"maintenance_ledger_write": "台帳與維修維護"
},
"featureHints": {
"training_hr_manage": "查看統計、篩選紀錄並匯出 Excel",
"shipping_notice_force_create": "略過重複攔截,新建發貨通知",
"shipping_notice_audit_sensitive_read": "查看 before / after / Diff 正文",
"shipping_notice_xfa_split_rule_edit": "維護欄位拆分規則",
"shipping_notice_xfa_split_rule_preview": "預覽拆分結果",
"shipping_notice_xfa_split_rule_publish": "審核並發佈規則",
"maintenance_ledger_write": "維護設備台帳與維修紀錄"
}
},
"request": {
"title": "權限申請",
"subtitle": "審核用戶對應用的訪問申請",
@@ -2667,9 +2758,11 @@
},
"role": {
"user": "普通用戶",
"hr": "HR",
"maintenanceManager": "維保管理員",
"hr": "培訓 HR",
"maintenanceManager": "設備維保專員",
"admin": "管理員",
"rd": "研發應用",
"shipping": "貨代專員",
"guest": "訪客"
},
"status": {