| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import type { RouteRecordRaw } from 'vue-router'
- const Layout = () => import('@/layouts/index.vue')
- const routes: RouteRecordRaw = {
- path: '/personnel',
- component: Layout,
- redirect: '/personnel/member',
- name: 'Personnel',
- meta: {
- title: '组织架构',
- },
- children: [
- {
- path: 'member',
- name: 'personnelMember',
- component: () => import('@/views/personnel/memberManagement.vue'),
- meta: {
- title: '成员管理',
- },
- children:[
- {
- path: 'memberMessage',
- name: 'personnelMemberMessage',
- component: () => import('@/views/personnel/modules/memberMessage.vue'),
- meta: {
- title: '成员详情',
- menu:false,
- activeMenu: '/personnel/member',
- },
- },
- {
- path: 'memberEdit',
- name: 'personnelMemberEdit',
- component: () => import('@/views/personnel/modules/addOperation.vue'),
- meta: {
- title: '成员添加',
- menu:false,
- activeMenu: '/personnel/member',
- },
- },
- ]
- },
- {
- path: 'institution',
- name: 'personnelInstitution',
- component: () => import('@/views/personnel/institutionManage.vue'),
- meta: {
- title: '机构管理',
- },
- children:[
- {
- path: 'institutionEdit',
- name: 'personnelInstitutionEdit',
- component: () => import('@/views/personnel/modules/editInstitution.vue'),
- meta: {
- title: '机构管理',
- menu:false
- },
- },
- ]
- },
- {
- path: 'role',
- name: 'personnelRole',
- component: () => import('@/views/personnel/roleManagement.vue'),
- meta: {
- title: '角色管理',
- // auth:['role.add','role.view','role.delete','role.edit']
- },
- },
- ],
- }
- export default routes
|