221 lines
9.5 KiB
JavaScript
221 lines
9.5 KiB
JavaScript
import {createRouter, createWebHistory} from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'app',
|
|
component: () => import('../views/HomePage/IndexView.vue'),
|
|
children: [
|
|
{
|
|
path: "/",
|
|
component: () => import ('../views/HomePage/Main.vue')
|
|
},
|
|
{
|
|
path: '/Project',
|
|
name: 'Project',
|
|
component: () => import('@/views/WorkLoadPage/I_Responsible.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad',
|
|
name: 'WorkLoad',
|
|
component: () => import('@/views/WorkLoadPage/WorkLoad.vue'),
|
|
children: [
|
|
{
|
|
path: '/WorkLoad/PersonalInformation',
|
|
name: 'WorkLoadPersonalInformation',
|
|
component: () => import('@/views/WorkLoadPage/PersonalInformation.vue')
|
|
},
|
|
/**
|
|
* 个人项目页面
|
|
*/
|
|
{
|
|
//个人项目
|
|
path: '/WorkLoad/PersonalProject',
|
|
name: 'WorkLoadPersonalProject',
|
|
component: () => import('@/views/WorkLoadPage/I_Responsible.vue'),
|
|
},
|
|
|
|
{
|
|
//个人项目的子系统
|
|
path: '/WorkLoad/PersonalProject/ChildSystem/:id',
|
|
name: 'WorkLoad/PersonalProject/ChildSystem',
|
|
component: () => import('@/views/WorkLoadPage/I_Manage_ChildSystem.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/PersonalProject/ChildSystem/ChildModule/:id',
|
|
name: 'WorkLoad/PersonalProject/ChildSystem/ChildModule',
|
|
component: () => import('@/views/WorkLoadPage/ChildModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/PersonalBelongings',
|
|
name: 'WorkLoadPersonalBelongings',
|
|
component: () => import('@/views/WorkLoadPage/PersonalBelongings.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/Message',
|
|
name: 'WorkLoadMessage',
|
|
component: () => import('@/views/WorkLoadPage/Message.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/DailyPaper',
|
|
name: 'WorkLoadDailyPaper',
|
|
component: () => import('@/views/WorkLoadPage/DailyPaper.vue')
|
|
},
|
|
{
|
|
//我管理的项目
|
|
path: '/WorkLoad/I_Manage',
|
|
name: 'WordLoadI_Manage',
|
|
component: () => import('@/views/WorkLoadPage/I_Responsible.vue'),
|
|
},
|
|
{
|
|
//我负责的项目
|
|
path: '/WorkLoad/I_Responsible',
|
|
name: 'WorkLoadI_Responsible',
|
|
component: () => import('@/views/WorkLoadPage/I_Responsible.vue')
|
|
},
|
|
|
|
{
|
|
//我负责的项目的子系统
|
|
path: '/WorkLoad/I_Responsible/ChildSystem/:id',
|
|
name: 'WorkLoad/I_Responsible/ChildSystem',
|
|
component: () => import('@/views/WorkLoadPage/I_Manage_ChildSystem.vue')
|
|
},
|
|
|
|
|
|
{
|
|
path: '/WorkLoad/I_Manage/ChildModule/:id',
|
|
name: 'WorkLoad/I_Manage/ChildModule',
|
|
component: () => import('@/views/WorkLoadPage/ChildModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/IChildModule',
|
|
name: 'Workload/IChildModule',
|
|
component: () => import('@/views/WorkLoadPage/IChildModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/UserManageModule',
|
|
name: 'WorkLoadI_ManageUserManageModule',
|
|
component: () => import('@/views/WorkLoadPage/UserManageModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/LoginRegisterModule',
|
|
name: 'WorkLoadI_ManageLoginRegisterModule',
|
|
component: () => import('@/views/WorkLoadPage/LoginRegisterModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/AuthorityManageModule',
|
|
name: 'WorkLoadI_ManageAuthorityManageModule',
|
|
component: () => import('@/views/WorkLoadPage/AuthorityManageModule.vue')
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/I_Manage_ChildSystem/:id',
|
|
name: 'WorkLoad/I_Manage/IChildSystem',
|
|
component: () => import('@/views/WorkLoadPage/I_Manage_ChildSystem.vue')
|
|
},
|
|
{
|
|
//我管理的项目的子系统
|
|
path: '/WorkLoad/I_Manage/Childsystem/:id',
|
|
name: 'WorkLoad/I_Manage/ChildSystem',
|
|
component: () => import('@/views/WorkLoadPage/I_Manage_ChildSystem.vue')
|
|
|
|
},
|
|
{
|
|
path: '/WorkLoad/I_Manage/ModuleInfo/:id',
|
|
name: 'WorkLoad/I_Manage/ModuleInfo',
|
|
component: () => import('@/views/WorkLoadPage/ModuleInfo.vue')
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
path: '/ProjectMessage/:id',
|
|
name: 'MainMessageCustom',
|
|
component: () => import('@/views/ProjectPage/MainMessageCustom.vue')
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'login',
|
|
component: () => import('@/views/AuthPage/Login.vue')
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'register',
|
|
component: () => import('../views/AuthPage/Register.vue')
|
|
},
|
|
{
|
|
path: '/LoginRegister/Login',
|
|
name: 'Login',
|
|
component: () => import('@/views/AuthPage/Login.vue')
|
|
},
|
|
|
|
{
|
|
path: '/Manager',
|
|
name: 'Manager',
|
|
component: () => import('@/views/ManagePage/Manager.vue'),
|
|
children: [
|
|
{
|
|
path: '/Manager/Main',
|
|
component: () => import('@/views/ManagePage/Main.vue')
|
|
},
|
|
{
|
|
path: '/Manager/User',
|
|
component: () => import('@/views/ManagePage/User.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Role',
|
|
component: () => import('@/views/ManagePage/Role.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Authority',
|
|
component: () => import('@/views/ManagePage/Authority.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Log',
|
|
component: () => import('@/views/ManagePage/Log.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Daily',
|
|
component: () => import('@/views/ManagePage/Daily.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Message',
|
|
component: () => import('@/views/ManagePage/Message.vue')
|
|
},
|
|
{
|
|
path: '/Manager/Carousel',
|
|
component: () => import('@/views/ManagePage/Carousel.vue')
|
|
}, {
|
|
path: '/Manager/TeamProfile',
|
|
component: () => import('@/views/ManagePage/TeamProfile.vue')
|
|
}, {
|
|
path: '/Manager/ProjectRecommend',
|
|
component: () => import('@/views/ManagePage/ProjectRecommend.vue')
|
|
}, {
|
|
path: '/Manager/NewsDisplay',
|
|
component: () => import('@/views/ManagePage/NewsDisplay.vue')
|
|
}, {
|
|
path: '/Manager/UserRecommend',
|
|
component: () => import('@/views/ManagePage/UserRecommend.vue')
|
|
}, {
|
|
path: '/Manager/ProjectInformation',
|
|
component: () => import('@/views/ManagePage/ProjectInformation.vue')
|
|
}, {
|
|
path: '/Manager/TeamInformation',
|
|
component: () => import('@/views/ManagePage/TeamInformation.vue')
|
|
}, {
|
|
path: '/Manager/NewsInformation',
|
|
component: () => import('@/views/ManagePage/NewsInformation.vue')
|
|
}
|
|
]
|
|
}
|
|
,
|
|
|
|
]
|
|
})
|
|
|
|
export default router
|