From df7281a2d41359c5a131301e2be04aac917a332e Mon Sep 17 00:00:00 2001 From: chenqi Date: Wed, 10 Dec 2025 16:33:41 +0800 Subject: [PATCH] =?UTF-8?q?INDEX.JS=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/router/index.js | 75 ++++++++++++----------------- 1 file changed, 32 insertions(+), 43 deletions(-) diff --git a/openhis-ui-vue3/src/router/index.js b/openhis-ui-vue3/src/router/index.js index e9bc89b3..fef11377 100644 --- a/openhis-ui-vue3/src/router/index.js +++ b/openhis-ui-vue3/src/router/index.js @@ -26,7 +26,7 @@ import Layout from '@/layout'; // 公共路由 export const constantRoutes = [ - { path: '/appoinmentmanage', component: Layout, redirect: '/appoinmentmanage', name: 'AppoinmentManage', hidden: true, meta: { title: '预约管理', icon: 'component' }, children: [ { path: '', component: () => import('@/views/appoinmentmanage/index.vue'), name: 'AppoinmentManageIndex', meta: { title: '预约管理' } } ] }, + { path: '/appoinmentmanage', component: Layout, redirect: '/appoinmentmanage', name: 'AppoinmentManage', hidden: true, meta: { title: '预约管理', icon: 'component' }, children: [{ path: '', component: () => import('@/views/appoinmentmanage/index.vue'), name: 'AppoinmentManageIndex', meta: { title: '预约管理' } }] }, { path: '/redirect', component: Layout, @@ -100,37 +100,37 @@ export const constantRoutes = [ ] // 动态路由,基于用户权限动态去加载 - 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: '发票管理' } - } - ] - }, +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: '/maintainSystem', component: Layout, @@ -237,9 +237,6 @@ export const constantRoutes = [ path: 'set/:tenantId(\\d+)', component: () => import('@/views/system/tenant/setUser'), name: 'SetUser', - meta: { title: '所属用户', activeMenu: '/system/basicmanage/tenant' }, - }, - ], meta: { title: '所属用户', activeMenu: '/system/tenant' } } ] @@ -254,9 +251,6 @@ export const constantRoutes = [ path: 'set/:tenantId(\\d+)', component: () => import('@/views/system/tenant/setContract'), name: 'SetContract', - meta: { title: '合同管理', activeMenu: '/system/basicmanage/tenant' }, - }, - ], meta: { title: '合同管理', activeMenu: '/system/tenant' } } ] @@ -369,11 +363,6 @@ export const constantRoutes = [ path: 'index/:tableId(\\d+)', component: () => import('@/views/tool/gen/editTable'), name: 'GenEdit', - meta: { title: '修改生成配置', activeMenu: '/tool/gen' }, - }, - ], - }, -]; meta: { title: '修改生成配置', activeMenu: '/tool/gen' } } ]