refactor(clinical-web): 重构医护端布局与路由结构
This commit is contained in:
@@ -3,9 +3,11 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
import ClinicalLayout from '@/layouts/ClinicalLayout.vue'
|
||||
import ConsentTasksView from '@/views/consent-tasks/ConsentTasksView.vue'
|
||||
import DashboardView from '@/views/dashboard/DashboardView.vue'
|
||||
import DocumentPermissionsView from '@/views/document-permissions/DocumentPermissionsView.vue'
|
||||
import DocumentsView from '@/views/documents/DocumentsView.vue'
|
||||
import ReportsView from '@/views/reports/ReportsView.vue'
|
||||
import SettingsView from '@/views/settings/SettingsView.vue'
|
||||
import UserPermissionsView from '@/views/users/UserPermissionsView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
@@ -13,39 +15,63 @@ const router = createRouter({
|
||||
{
|
||||
path: '/',
|
||||
component: ClinicalLayout,
|
||||
redirect: '/dashboard',
|
||||
redirect: '/workbench/home',
|
||||
children: [
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: DashboardView,
|
||||
meta: { title: '工作台' },
|
||||
path: 'workbench',
|
||||
redirect: '/workbench/home',
|
||||
children: [
|
||||
{
|
||||
path: 'home',
|
||||
component: DashboardView,
|
||||
meta: { title: '首页', group: '工作台' },
|
||||
},
|
||||
{
|
||||
path: 'signing',
|
||||
component: ConsentTasksView,
|
||||
meta: { title: '签署工作台', group: '工作台' },
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'consent-tasks',
|
||||
component: ConsentTasksView,
|
||||
meta: { title: '签署任务' },
|
||||
},
|
||||
{
|
||||
path: 'documents',
|
||||
component: DocumentsView,
|
||||
meta: { title: '文书库' },
|
||||
},
|
||||
{
|
||||
path: 'reports',
|
||||
component: ReportsView,
|
||||
meta: { title: '统计报表' },
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
component: SettingsView,
|
||||
meta: { title: '系统设置' },
|
||||
path: 'management',
|
||||
redirect: '/management/documents',
|
||||
children: [
|
||||
{
|
||||
path: 'documents',
|
||||
component: DocumentsView,
|
||||
meta: { title: '文档库管理', group: '管理' },
|
||||
},
|
||||
{
|
||||
path: 'reports',
|
||||
component: ReportsView,
|
||||
meta: { title: '报表分析', group: '管理' },
|
||||
},
|
||||
{
|
||||
path: 'users',
|
||||
component: UserPermissionsView,
|
||||
meta: { title: '用户与权限', group: '管理' },
|
||||
},
|
||||
{
|
||||
path: 'document-permissions',
|
||||
component: DocumentPermissionsView,
|
||||
meta: { title: '文档权限', group: '管理' },
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
component: SettingsView,
|
||||
meta: { title: '系统设置', group: '管理' },
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
redirect: '/dashboard',
|
||||
},
|
||||
{ path: '/dashboard', redirect: '/workbench/home' },
|
||||
{ path: '/consent-tasks', redirect: '/workbench/signing' },
|
||||
{ path: '/documents', redirect: '/management/documents' },
|
||||
{ path: '/reports', redirect: '/management/reports' },
|
||||
{ path: '/settings', redirect: '/management/settings' },
|
||||
{ path: '/:pathMatch(.*)*', redirect: '/workbench/home' },
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user