Fix Bug #539: 住院护士站功能模块缺失 — 菜单类型从目录(M)改为菜单(C)并添加静态路由
根因分析: - sys_menu 中"住院护士站"(menu_id=295) 的 menu_type 为 M(目录类型), 没有 component,点击后仅在侧边栏展开子菜单,不会导航到功能页面 - "住院医生工作站"(menu_id=288) 为 C 类型(菜单),点击直接打开功能页面 修复方案(两处修改): 1. 数据库:将"住院护士站" menu_type 改为 C,设置 component 为 inpatientNurse/inpatientNurseStation/index,path 改为 inpatientNurseStation → 点击侧边栏"住院护士站"直接打开带 el-tabs 的功能页面 2. 前端路由:添加 /inpatientNurse 静态路由组,包含 inpatientNurseStation 及 6个快捷访问子路由,与 quick-access 卡片的 /inpatientNurse/... 路径匹配 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,51 @@ export const constantRoutes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// 住院护士站 — 快捷访问路由(与 sys_menu 中 menu_id=295 的动态路由并存,路径不同不冲突)
|
||||
{
|
||||
path: '/inpatientNurse',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
redirect: '/inpatientNurse/inpatientNurseStation',
|
||||
children: [
|
||||
{
|
||||
path: 'inpatientNurseStation',
|
||||
component: () => import('@/views/inpatientNurse/inpatientNurseStation/index.vue'),
|
||||
name: 'InpatientNurseStation',
|
||||
meta: {title: '住院护士站'}
|
||||
},
|
||||
{
|
||||
path: 'medicalOrderExecution',
|
||||
component: () => import('@/views/inpatientNurse/medicalOrderExecution/index.vue'),
|
||||
name: 'MedicalOrderExecution',
|
||||
meta: {title: '医嘱执行'}
|
||||
},
|
||||
{
|
||||
path: 'medicalOrderProofread',
|
||||
component: () => import('@/views/inpatientNurse/medicalOrderProofread/index.vue'),
|
||||
name: 'MedicalOrderProofread',
|
||||
meta: {title: '医嘱校对'}
|
||||
},
|
||||
{
|
||||
path: 'medicineCollect',
|
||||
component: () => import('@/views/inpatientNurse/medicineCollect/index.vue'),
|
||||
name: 'MedicineCollect',
|
||||
meta: {title: '领药管理'}
|
||||
},
|
||||
{
|
||||
path: 'tprsheet',
|
||||
component: () => import('@/views/inpatientNurse/tprsheet/index.vue'),
|
||||
name: 'TprSheet',
|
||||
meta: {title: '体温单'}
|
||||
},
|
||||
{
|
||||
path: 'nursingRecord',
|
||||
component: () => import('@/views/inpatientNurse/nursingRecord/index.vue'),
|
||||
name: 'NursingRecord',
|
||||
meta: {title: '护理记录'}
|
||||
}
|
||||
]
|
||||
},
|
||||
// 添加套餐管理相关路由到公共路由,确保始终可用
|
||||
{
|
||||
path: '/maintainSystem/Inspection/PackageManagement',
|
||||
|
||||
Reference in New Issue
Block a user