From d85a8684a6d687ae34c3e4075bb2b3ef152115db Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 17 Dec 2025 10:32:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(router):=20=E6=B3=A8=E9=87=8A=E6=8E=89?= =?UTF-8?q?=E9=83=A8=E5=88=86=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE=E4=BB=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=9D=E5=A7=8B=E5=8A=A0=E8=BD=BD=E6=80=A7?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注释掉了门诊医生站、套餐管理、预约管理、基础管理、维护系统及系统管理等模块的路由配置,\ 便于后续按需加载或调试。此举可减少初次加载时不必要的资源请求,提升页面初始化效率。 --- openhis-ui-vue3/src/router/index.js | 336 ++++++++++++++-------------- 1 file changed, 168 insertions(+), 168 deletions(-) diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index b6f767db..04b2e900 100644 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -26,21 +26,21 @@ import Layout from '@/layout' // 公共路由 - 所有用户均可访问的路由 export const constantRoutes = [ // 门诊医生站路由 - { - path: '/doctorstation', - component: Layout, - redirect: '/doctorstation', - name: 'DoctorStation', - meta: { title: '门诊医生站', icon: 'doctorstation' }, - children: [ - { - path: '', - component: () => import('@/views/doctorstation/index.vue'), - name: 'DoctorStationIndex', - meta: { title: '门诊医生站', icon: 'doctorstation' } - } - ] - }, + // { + // path: '/doctorstation', + // component: Layout, + // redirect: '/doctorstation', + // name: 'DoctorStation', + // meta: { title: '门诊医生站', icon: 'doctorstation' }, + // children: [ + // { + // path: '', + // component: () => import('@/views/doctorstation/index.vue'), + // name: 'DoctorStationIndex', + // meta: { title: '门诊医生站', icon: 'doctorstation' } + // } + // ] + // }, // 重定向路由 { path: '/redirect', @@ -101,167 +101,167 @@ export const constantRoutes = [ ] }, // 套餐管理相关路由 - 添加到公共路由确保始终可用 - { - path: '/maintainSystem/Inspection/PackageManagement', - component: Layout, - hidden: true, - children: [ - { - path: '', - component: () => import('@/views/maintainSystem/Inspection/PackageManagement.vue'), - name: 'DirectPackageManagement', - meta: { title: '套餐管理' } - } - ] - }, + // { + // path: '/maintainSystem/Inspection/PackageManagement', + // component: Layout, + // hidden: true, + // children: [ + // { + // path: '', + // component: () => import('@/views/maintainSystem/Inspection/PackageManagement.vue'), + // name: 'DirectPackageManagement', + // meta: { title: '套餐管理' } + // } + // ] + // }, // 预约管理直接访问路由 - 兼容外部系统访问 - { - path: '/reservationRecord2/appoinmentmanage', - component: Layout, - hidden: true, - children: [ - { - path: '', - component: () => import('@/views/appoinmentmanage/clinicRoom/index.vue'), - name: 'DirectClinicRoom', - meta: { title: '门诊出诊医生诊室设置' } - } - ] - } + // { + // path: '/reservationRecord2/appoinmentmanage', + // component: Layout, + // hidden: true, + // children: [ + // { + // path: '', + // component: () => import('@/views/appoinmentmanage/clinicRoom/index.vue'), + // name: 'DirectClinicRoom', + // meta: { title: '门诊出诊医生诊室设置' } + // } + // ] + // } ] // 动态路由 - 基于用户权限动态加载的路由 export const dynamicRoutes = [ // 基础管理路由 - { - path: '/basicmanage', - component: Layout, - redirect: '/basicmanage/invoice-management', - name: 'BasicManage', - meta: { title: '基础管理', icon: 'component' }, - children: [ - { - path: 'invoice-management', - component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), - name: 'invoice-management', - meta: { title: '发票管理' } - } - ] - }, - // 兼容系统业务管理路径的发票管理路由 - { - path: '/system/ywgz', - component: Layout, - redirect: '/system/ywgz/InvoiceManagement', - hidden: true, - children: [ - { - path: 'InvoiceManagement', - component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), - name: 'SystemInvoiceManagement', - meta: { title: '发票管理' } - } - ] - }, + // { + // path: '/basicmanage', + // component: Layout, + // redirect: '/basicmanage/invoice-management', + // name: 'BasicManage', + // meta: { title: '基础管理', icon: 'component' }, + // children: [ + // { + // path: 'invoice-management', + // component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), + // name: 'invoice-management', + // meta: { title: '发票管理' } + // } + // ] + // }, + // 兼容系统业务管理路径的发票管理路由 + // { + // path: '/system/ywgz', + // component: Layout, + // redirect: '/system/ywgz/InvoiceManagement', + // hidden: true, + // children: [ + // { + // path: 'InvoiceManagement', + // component: () => import('@/views/basicmanage/InvoiceManagement/index.vue'), + // name: 'SystemInvoiceManagement', + // meta: { title: '发票管理' } + // } + // ] + // }, // 维护系统路由 - { - path: '/maintainSystem', - component: Layout, - redirect: '/maintainSystem/chargeConfig', - name: 'MaintainSystem', - meta: { title: '维护系统', icon: 'system' }, - children: [ - { - path: '', - redirect: 'chargeConfig', - name: 'MaintainSystemIndex' // 添加名称以解决警告 - }, - { - path: 'chargeConfig', // 收费配置路由 - component: () => import('@/views/maintainSystem/chargeConfig/index.vue'), - name: 'ChargeConfig', - meta: { title: '挂号收费系统参数维护', icon: 'config', permissions: ['maintainSystem:chargeConfig:list'] } - }, - { - path: 'Inspection', // 检验管理路由 - component: () => import('@/views/maintainSystem/Inspection/index.vue'), - name: 'Inspection', - meta: { title: '检验管理', icon: 'inspection' }, - children: [ - { - path: 'PackageManagement', // 套餐管理路由 - component: () => import('@/views/maintainSystem/Inspection/PackageManagement.vue'), - name: 'PackageManagement', - meta: { title: '套餐管理' } - } - ] - } - ] - }, + // { + // path: '/maintainSystem', + // component: Layout, + // redirect: '/maintainSystem/chargeConfig', + // name: 'MaintainSystem', + // meta: { title: '维护系统', icon: 'system' }, + // children: [ + // { + // path: '', + // redirect: 'chargeConfig', + // name: 'MaintainSystemIndex' // 添加名称以解决警告 + // }, + // { + // path: 'chargeConfig', // 收费配置路由 + // component: () => import('@/views/maintainSystem/chargeConfig/index.vue'), + // name: 'ChargeConfig', + // meta: { title: '挂号收费系统参数维护', icon: 'config', permissions: ['maintainSystem:chargeConfig:list'] } + // }, + // { + // path: 'Inspection', // 检验管理路由 + // component: () => import('@/views/maintainSystem/Inspection/index.vue'), + // name: 'Inspection', + // meta: { title: '检验管理', icon: 'inspection' }, + // children: [ + // { + // path: 'PackageManagement', // 套餐管理路由 + // component: () => import('@/views/maintainSystem/Inspection/PackageManagement.vue'), + // name: 'PackageManagement', + // meta: { title: '套餐管理' } + // } + // ] + // } + // ] + // }, // 系统管理路由 - { - path: '/system', - component: Layout, - redirect: '/system/user', - name: 'System', - meta: { title: '系统管理', icon: 'system' }, - children: [ - { - path: 'user', // 用户管理路由 - component: () => import('@/views/system/user/index.vue'), - name: 'User', - meta: { title: '用户管理', icon: 'user', permissions: ['system:user:list'] } - }, - { - path: 'role', // 角色管理路由 - component: () => import('@/views/system/role/index.vue'), - name: 'Role', - meta: { title: '角色管理', icon: 'role', permissions: ['system:role:list'] } - }, - { - path: 'menu', // 菜单管理路由 - component: () => import('@/views/system/menu/index.vue'), - name: 'Menu', - meta: { title: '菜单管理', icon: 'menu', permissions: ['system:menu:list'] } - }, - { - path: 'dept', // 部门管理路由 - component: () => import('@/views/system/dept/index.vue'), - name: 'Dept', - meta: { title: '部门管理', icon: 'dept', permissions: ['system:dept:list'] } - }, - { - path: 'post', // 岗位管理路由 - component: () => import('@/views/system/post/index.vue'), - name: 'Post', - meta: { title: '岗位管理', icon: 'post', permissions: ['system:post:list'] } - }, - { - path: 'dict', // 字典管理路由 - component: () => import('@/views/system/dict/index.vue'), - name: 'Dict', - meta: { title: '字典管理', icon: 'dict', permissions: ['system:dict:list'] } - }, - { - path: 'config', // 参数配置路由 - component: () => import('@/views/system/config/index.vue'), - name: 'Config', - meta: { title: '参数配置', icon: 'config', permissions: ['system:config:list'] } - }, - { - path: 'notice', // 通知公告路由 - component: () => import('@/views/system/notice/index.vue'), - name: 'Notice', - meta: { title: '通知公告', icon: 'notice', permissions: ['system:notice:list'] } - }, - { - path: 'tenant', // 租户管理路由 - component: () => import('@/views/system/tenant/index.vue'), - name: 'Tenant', - meta: { title: '租户管理', icon: 'tenant', permissions: ['system:tenant:list'] } - } - ] - }, + // { + // path: '/system', + // component: Layout, + // redirect: '/system/user', + // name: 'System', + // meta: { title: '系统管理', icon: 'system' }, + // children: [ + // { + // path: 'user', // 用户管理路由 + // component: () => import('@/views/system/user/index.vue'), + // name: 'User', + // meta: { title: '用户管理', icon: 'user', permissions: ['system:user:list'] } + // }, + // { + // path: 'role', // 角色管理路由 + // component: () => import('@/views/system/role/index.vue'), + // name: 'Role', + // meta: { title: '角色管理', icon: 'role', permissions: ['system:role:list'] } + // }, + // { + // path: 'menu', // 菜单管理路由 + // component: () => import('@/views/system/menu/index.vue'), + // name: 'Menu', + // meta: { title: '菜单管理', icon: 'menu', permissions: ['system:menu:list'] } + // }, + // { + // path: 'dept', // 部门管理路由 + // component: () => import('@/views/system/dept/index.vue'), + // name: 'Dept', + // meta: { title: '部门管理', icon: 'dept', permissions: ['system:dept:list'] } + // }, + // { + // path: 'post', // 岗位管理路由 + // component: () => import('@/views/system/post/index.vue'), + // name: 'Post', + // meta: { title: '岗位管理', icon: 'post', permissions: ['system:post:list'] } + // }, + // { + // path: 'dict', // 字典管理路由 + // component: () => import('@/views/system/dict/index.vue'), + // name: 'Dict', + // meta: { title: '字典管理', icon: 'dict', permissions: ['system:dict:list'] } + // }, + // { + // path: 'config', // 参数配置路由 + // component: () => import('@/views/system/config/index.vue'), + // name: 'Config', + // meta: { title: '参数配置', icon: 'config', permissions: ['system:config:list'] } + // }, + // { + // path: 'notice', // 通知公告路由 + // component: () => import('@/views/system/notice/index.vue'), + // name: 'Notice', + // meta: { title: '通知公告', icon: 'notice', permissions: ['system:notice:list'] } + // }, + // { + // path: 'tenant', // 租户管理路由 + // component: () => import('@/views/system/tenant/index.vue'), + // name: 'Tenant', + // meta: { title: '租户管理', icon: 'tenant', permissions: ['system:tenant:list'] } + // } + // ] + // }, // 租户用户设置路由 { path: '/system/tenant-user',