/* Layout */
import Layout from '../../views/layout/Layout'
export const systemRouters = [
  {
    path: '/sys',
    name: 'sys',
    redirect: '/busAdmin',
    hidden: true,
    meta: {
      title: '系统管理子系统',
      permission: ['/sys'],
      isSys: true
    }
  },
  {
    path: '/system',
    component: Layout,
    redirect: '/resource',
    name: 'System',
    alwaysShow: true,
    meta: {
      title: '系统管理',
      icon: 'icon-config', // 图标
      permission: ['/system'], // 权限名称
      sys: '/sys'
    },
    children: [
      {
        path: '/resource',
        name: 'Resource',
        component: () => import('@/views/system/resource/listResource'),
        meta: { title: '资源管理', icon: 'function', permission: ['/resource'] }
      },
      {
        path: '/dict',
        name: 'Dict',
        component: () => import('@/views/system/dict/listDict'),
        meta: { title: '字典管理', icon: 'function', permission: ['/dict'] }
      },
      {
        path: '/dept',
        name: 'Dept',
        component: () => import('@/views/system/dept/listDept'),
        meta: { title: '组织管理', icon: 'tree', permission: ['/dept'] }
      },
      {
        path: '/role',
        component: () => import('@/views/system/role/listRole'), // Parent router-view
        name: 'Role',
        meta: { title: '角色管理', permission: ['/role'] }
      },
      {
        path: '/user',
        component: () => import('@/views/system/user/listUser'), // Parent router-view
        name: 'User',
        meta: { title: '用户管理', permission: ['/mgr'] }
      },
      {
        path: '/log',
        component: () => import('@/views/system/log/listLog'), // Parent router-view
        name: 'Log',
        meta: { title: '日志管理', permission: ['/log'] }
      },
      {
        path: '/loginLog',
        component: () => import('@/views/system/log/loginLog'), // Parent router-view
        name: 'LoginLog',
        meta: { title: '登录日志', permission: ['/loginLog'] }
      }
    ]
  }
]
