feat: complete remaining PRD tasks — RBAC nodes and staff split, schedule month view, auto-generate attendance from schedules, plus fix TypeORM name
This commit is contained in:
@@ -69,6 +69,17 @@ const PRESET_PERMISSIONS: Array<{ code: string; name: string; group: string }> =
|
||||
{ code: 'attendance:create', name: '新增考勤', group: 'attendance' },
|
||||
{ code: 'attendance:edit', name: '编辑考勤', group: 'attendance' },
|
||||
{ code: 'attendance:export', name: '导出考勤', group: 'attendance' },
|
||||
{ code: 'attendance:generate', name: '按课表生成考勤', group: 'attendance' },
|
||||
{ code: 'learning:create', name: '创建学习任务', group: 'learning' },
|
||||
{ code: 'learning:edit', name: '编辑学习任务', group: 'learning' },
|
||||
{ code: 'learning:delete', name: '删除学习任务', group: 'learning' },
|
||||
{ code: 'exam:create', name: '创建考试', group: 'exam' },
|
||||
{ code: 'exam:edit', name: '编辑考试', group: 'exam' },
|
||||
{ code: 'exam:delete', name: '删除考试', group: 'exam' },
|
||||
{ code: 'sync:trigger', name: '触发数据同步', group: 'sync' },
|
||||
{ code: 'sync:read', name: '查看同步状态', group: 'sync' },
|
||||
{ code: 'integration:trigger', name: '触发集成', group: 'integration' },
|
||||
{ code: 'integration:read', name: '查看集成状态', group: 'integration' },
|
||||
];
|
||||
|
||||
const PRESET_ROLES: Array<{
|
||||
@@ -120,6 +131,27 @@ const PRESET_ROLES: Array<{
|
||||
isSystem: true,
|
||||
permissionGroups: ['classroom', 'rental', 'tenant'],
|
||||
},
|
||||
{
|
||||
name: '财务',
|
||||
code: 'finance',
|
||||
description: '管理费用、账单与押金',
|
||||
isSystem: true,
|
||||
permissionGroups: ['expense', 'bill', 'deposit', 'dashboard'],
|
||||
},
|
||||
{
|
||||
name: '宿管',
|
||||
code: 'dorm_manager',
|
||||
description: '管理宿舍入住与宿舍信息',
|
||||
isSystem: true,
|
||||
permissionGroups: ['student', 'room', 'occupancy', 'dashboard'],
|
||||
},
|
||||
{
|
||||
name: '教务',
|
||||
code: 'academic',
|
||||
description: '管理班级、排课、考勤、学习与考试',
|
||||
isSystem: true,
|
||||
permissionGroups: ['class', 'schedule', 'attendance', 'classroom', 'learning', 'exam', 'dashboard'],
|
||||
},
|
||||
];
|
||||
|
||||
@Injectable()
|
||||
|
||||
Reference in New Issue
Block a user