import Layout from '@/layout'

const componentsRouter = {
  path: '/jurisdiction',
  component: Layout,
  redirect: '/jurisdiction/user',
  name: 'jurisdiction',
  alwaysShow: true,
  meta: {
    title: '权限管理',
    icon: 'set'
  },
  children: [{
      path: '/jurisdiction/user',
      name: 'user',
      component: () => import('@/views/jurisdiction/user'),
      meta: {
        title: '用户管理',
        icon: 'setMen'
      }
    },
    {
      path: '/jurisdiction/userPedigree',
      component: () => import('@/views/jurisdiction/userPedigree'),
      meta: {
        title: '用户全宗管理',
        icon: 'setMen'
      }
    },
    {
      path: '/jurisdiction/userRole',
      name: 'userRole',
      component: () => import('@/views/jurisdiction/userRole'),
      meta: {
        title: '用户角色关联管理',
        icon: 'zd'
      }
    },
    {
      path: '/jurisdiction/role',
      name: 'role',
      component: () => import('@/views/jurisdiction/role'),
      meta: {
        title: '角色管理',
        icon: 'mlsz'
      }
    },
    {
      path: '/jurisdiction/fondclass',
      name: 'role',
      component: () => import('@/views/jurisdiction/fondclass'),
      meta: {
        title: '全宗门类管理',
        icon: 'zd'
      }
    },
    {
      path: '/jurisdiction/roleMenu',
      name: 'roleMenu',
      component: () => import('@/views/jurisdiction/roleMenu'),
      meta: {
        title: '角色菜单关联管理',
        icon: 'zd'
      }
    },
    {
      path: '/jurisdiction/mune',
      name: 'mune',
      component: () => import('@/views/jurisdiction/mune'),
      meta: {
        title: '菜单管理',
        icon: 'setNote'
      }
    },
    {
      path: '/jurisdiction/dept',
      name: 'dept',
      component: () => import('@/views/jurisdiction/dept'),
      meta: {
        title: '部门管理',
        icon: 'zd'
      }
    },
    {
      path: '/jurisdiction/userdept',
      name: 'userdept',
      component: () => import('@/views/jurisdiction/userDept'),
      meta: {
        title: '用户部门管理',
        icon: 'zd'
      }
    },
    {
      path: '/jurisdiction/deptclass',
      name: 'deptclass',
      component: () => import('@/views/jurisdiction/deptClass'),
      meta: {
        title: '部门门类管理',
        icon: 'zd'
      }
    },
  ]
}
export default componentsRouter
