feat(web): 新增系统日志服务代理和智能体资源服务,添加访问控制工具函数,增强前端服务层能力

This commit is contained in:
caoxiaozhu
2026-05-15 09:36:16 +00:00
parent 891cecb4a8
commit 1bab7c22d7
3 changed files with 28 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ export const DEFAULT_APP_VIEW_ORDER = [
'approval',
'policies',
'audit',
'logs',
'employees',
'settings'
]
@@ -12,11 +13,12 @@ export const DEFAULT_APP_VIEW_ORDER = [
const ALWAYS_VISIBLE_VIEWS = new Set(['workbench', 'requests', 'policies'])
const VIEW_ROLE_RULES = {
overview: ['finance', 'executive'],
approval: ['approver'],
audit: ['auditor'],
employees: ['manager'],
settings: ['manager']
}
approval: ['approver'],
audit: ['auditor'],
logs: ['manager'],
employees: ['manager'],
settings: ['manager']
}
function normalizedRoleCodes(user) {
if (!user) {