fix(duty): show duty schedule on portal home launcher

Register /duty frontend route module, add portal top-module order, and fix sys_menu as L1 directory with schedule leaf plus role grants.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-08-15 16:04:33 +08:00
1 parent a1321c145c
commit 4c23ff9f61
5 files changed
+135 -6

No files matched your search

+31 -2
View File
@@ -519,7 +519,36 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ──────────────────────────────────────────────
// 5. 工作流管理
// 5. 值班管理
// ──────────────────────────────────────────────
{
id: 'DUTY000000000000000000000000000',
name: 'Duty',
path: '/duty',
component: '/index/index',
meta: {
title: '值班管理',
icon: 'ri:calendar-schedule-line',
keepAlive: false,
roles: ['admin', 'super_admin']
},
children: [
{
id: 'DUTY000000000000000000000000001',
name: 'DutySchedule',
path: 'schedule',
component: '/duty/schedule/index',
meta: {
title: '值班排班',
keepAlive: true,
menuCode: 'duty:schedule:list'
}
}
]
},
// ──────────────────────────────────────────────
// 6. 工作流管理
// ──────────────────────────────────────────────
{
id: 'WKF00000000000000000000000000001',
@@ -593,7 +622,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ──────────────────────────────────────────────
// 6. 系统管理
// 7. 系统管理
// ──────────────────────────────────────────────
{
id: 'SYSM000000000000000000000000000001',
+2
View File
@@ -55,6 +55,8 @@ export const SIDEBAR_MENU_ICON_MAP: Record<string, string> = {
WorkflowCompleted: 'ri:checkbox-circle-line',
WorkflowMyApplications: 'ri:file-user-line',
LeaveRequest: 'ri:calendar-event-line',
Duty: 'ri:calendar-schedule-line',
DutySchedule: 'ri:calendar-check-line',
// ── 系统 ──
SystemManage: 'ri:settings-3-line',
@@ -21,6 +21,7 @@ export const PORTAL_TOP_MODULE_ORDER = [
'/bx',
'/db',
'/pl',
'/duty',
'/workflow',
'/system'
] as const