This commit is contained in:
zlwu committed 2026-05-17 08:36:37 +08:00
1 parent 246ad2228e
commit 8e2dd8b9f0
186 files changed
+38821 -2571

No files matched your search

+156 -99
View File
@@ -1,153 +1,210 @@
import type { AppRouteRecord } from '@/types/router'
/**
* 前端路由(Demo 参考页 + 系统管理)
* 前端路由(系统管理 + 基础信息管理 + 细胞存储 + 工作流)
* 与后端菜单对齐时请同步 `backend/app/api/menu.py`。
*/
export const sqxpAdminRoutes: AppRouteRecord[] = [
{
id: '10000000000000000000000000000002',
name: 'Demo',
path: '/demo',
id: '10000000000000000000000000000001_child',
name: 'Console',
path: '/console',
component: '/dashboard/console/index',
meta: {
title: '工作台',
/** 无 icon:侧栏用与一级菜单同宽的虚拟槽对齐标题 */
virtualMenuIcon: true,
keepAlive: true,
fixedTab: true,
menuCode: 'dashboard'
}
},
{
id: '60000000000000000000000000000001',
name: 'Operations',
path: '/operations',
component: '/index/index',
meta: {
title: 'Demo',
icon: 'grid',
title: '运营支撑',
icon: 'operation',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: '10000000000000000000000000000001_child',
name: 'Console',
path: 'console',
component: '/dashboard/console/index',
meta: {
title: '工作台',
icon: 'home-filled',
keepAlive: true,
fixedTab: true,
menuCode: 'dashboard'
}
id: '60000000000000000000000000000002',
name: 'CleanRoom',
path: 'clean-room',
component: '/operations/clean-room/index',
meta: { title: '洁净室管理', keepAlive: true }
},
{
id: '10000000000000000000000000000005',
name: 'Unit',
path: 'unit',
component: '/system/unit/index',
meta: { title: '商品单位', keepAlive: true }
id: '60000000000000000000000000000003',
name: 'StorageFacility',
path: 'storage-facility',
component: '/operations/storage-facility/index',
meta: { title: '库位管理', keepAlive: true }
},
{
id: '10000000000000000000000000000021',
name: 'OrderList',
path: 'order',
component: '/system/order/index',
meta: { title: '订单列表', keepAlive: true }
id: '60000000000000000000000000000004',
name: 'ExhibitionAppointment',
path: 'exhibition-appointment',
component: '/operations/exhibition-appointment/index',
meta: { title: '展馆预约', keepAlive: true }
},
{
id: '10000000000000000000000000000006',
name: 'Product',
path: 'product',
component: '/system/product/index',
meta: { title: '商品管理', keepAlive: true }
},
{
id: '10000000000000000000000000000004',
name: 'Category',
path: 'category',
component: '/system/category/index',
meta: { title: '商品分类', keepAlive: true }
id: '60000000000000000000000000000005',
name: 'OperationsDemo',
path: 'demo',
component: '/operations/demo/index',
meta: { title: 'demo', keepAlive: true }
}
]
},
{
id: '20000000000000000000000000000001',
name: 'System',
path: '/system',
id: '40000000000000000000000000000001',
name: 'BasicInfo',
path: '/basic-info',
component: '/index/index',
meta: {
title: '系统管理',
icon: 'setting',
title: '基础信息管理',
icon: 'folder-opened',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: '20000000000000000000000000000002',
name: 'Tenant',
path: 'tenant',
component: '/system/tenant/index',
meta: { title: '租户管理', keepAlive: true }
id: '40000000000000000000000000000002',
name: 'BizCustomer',
path: 'customer',
component: '/basic-info/customer/index',
meta: { title: '客户管理', keepAlive: true }
},
{
id: 'user-management-route',
name: 'SystemUser',
path: 'user',
component: '/system/user/index',
meta: { title: '用户管理', keepAlive: true }
id: '40000000000000000000000000000003',
name: 'BizCellSampleType',
path: 'cell-sample-type',
component: '/basic-info/cell-sample-type/index',
meta: { title: '细胞样本类型管理', keepAlive: true }
},
{
id: 'user-detail-route',
name: 'SystemUserDetail',
path: 'user/detail',
component: '/system/user/detail',
meta: { title: '用户详情', isHide: true, keepAlive: true }
id: '40000000000000000000000000000004',
name: 'BizCollectionRegion',
path: 'collection-region',
component: '/basic-info/collection-region/index',
meta: { title: '采集地区及医院管理', keepAlive: true }
},
{
id: 'role-management-route',
name: 'SystemRole',
path: 'role',
component: '/system/role/index',
meta: { title: '角色管理', keepAlive: true }
id: '40000000000000000000000000000005',
name: 'BizCollectionProtocolNo',
path: 'collection-protocol-no',
component: '/basic-info/collection-protocol-no/index',
meta: { title: '采集协议号管理', keepAlive: true }
},
{
id: 'menu-management-route',
name: 'SystemMenu',
path: 'menu',
component: '/system/menu/index',
meta: { title: '菜单管理', keepAlive: true }
id: '40000000000000000000000000000006',
name: 'BizSampleCode',
path: 'sample-code',
component: '/basic-info/sample-code/index',
meta: { title: '样本编码管理', keepAlive: true }
}
]
},
{
id: '50000000000000000000000000000001',
name: 'CellStorage',
path: '/cell-storage',
component: '/index/index',
meta: {
title: '细胞存储管理',
icon: 'collection-tag',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: '50000000000000000000000000000002',
name: 'CellStorageProtocol',
path: 'protocol',
component: '/cell-storage/protocol/index',
meta: { title: '采集协议单', keepAlive: true }
},
{
id: 'dept-management-route',
name: 'SystemDept',
path: 'dept',
component: '/system/dept/index',
meta: { title: '组织管理', keepAlive: true }
id: '50000000000000000000000000000003',
name: 'CellStorageProtocolAudit',
path: 'protocol-audit',
component: '/cell-storage/protocol-audit/index',
meta: { title: '采集协议单审核', keepAlive: true }
},
{
id: 'dict-management-route',
name: 'SystemDict',
path: 'dict',
component: '/system/dict/index',
meta: { title: '字典管理', keepAlive: true }
id: '50000000000000000000000000000004',
name: 'CellStoragePaymentConfirm',
path: 'payment-confirm',
component: '/cell-storage/payment-confirm/index',
meta: { title: '收款确认(财务)', keepAlive: true }
},
{
id: 'site-management-route',
name: 'SystemSite',
path: 'site',
component: '/system/site/index',
meta: { title: '站点管理', keepAlive: true }
id: '50000000000000000000000000000005',
name: 'CellStorageRefundConfirm',
path: 'refund-confirm',
component: '/cell-storage/refund-confirm/index',
meta: { title: '退费确认(财务)', keepAlive: true }
},
{
id: 'post-management-route',
name: 'SystemPost',
path: 'post',
component: '/system/post/index',
meta: { title: '职位管理', keepAlive: true }
id: '50000000000000000000000000000006',
name: 'CellStorageInstallmentWarning',
path: 'installment-warning',
component: '/cell-storage/installment-warning/index',
meta: { title: '分期缴费预警', keepAlive: true }
}
]
},
{
id: '30000000000000000000000000000001',
name: 'Workflow',
path: '/workflow',
component: '/index/index',
meta: {
title: '工作流管理',
icon: 'workflow',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: '10000000000000000000000000000wf01',
name: 'WorkflowProcess',
path: 'process',
component: '/system/workflow/process/index',
meta: { title: '流程配置', keepAlive: true, icon: 'workflow' }
},
{
id: 'unit-management-route',
name: 'SystemUnit',
path: 'unit',
component: '/system/unit/index',
meta: { title: '物品单位', keepAlive: true }
id: '10000000000000000000000000000wf02',
name: 'WorkflowPending',
path: 'pending',
component: '/system/workflow/task-pending/index',
meta: { title: '待办中心', keepAlive: true }
},
{
id: 'express-management-route',
name: 'SystemExpress',
path: 'express',
component: '/system/express/index',
meta: { title: '快递公司管理', keepAlive: true }
id: '10000000000000000000000000000wf03',
name: 'WorkflowCompleted',
path: 'completed',
component: '/system/workflow/task-completed/index',
meta: { title: '已办中心', keepAlive: true }
},
{
id: '10000000000000000000000000000wf05',
name: 'WorkflowMyApplications',
path: 'my-applications',
component: '/system/workflow/my-applications/index',
meta: { title: '我的申请', keepAlive: true }
},
{
id: '10000000000000000000000000000wf04',
name: 'LeaveRequest',
path: 'leave',
component: '/system/leave/index',
meta: { title: '请假申请', keepAlive: true }
}
]
}