/*
 * @Author: your name
 * @Date: 2021-04-23 15:39:41
 * @LastEditTime: 2021-05-14 09:19:51
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /react-antd-admin-template/src/config/routeMap.js
 */

import Loadable from 'react-loadable';
import Loading from '@/components/Loading'
const Dashboard = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/dashboard'),loading: Loading});
const SituationCreate = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/situationCreate/situationCreate'),loading: Loading});
const PermissionMaintenance = Loadable({loader: () => import(/*webpackChunkName:'Bug'*/'@/views/personnelManagement/permissionMaintenance/permissionMaintenance'),loading: Loading});
const PersonnelInformation = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/personnelManagement/personnelInformation/personnelInformation'),loading: Loading});
const PersonAndCheckGroup = Loadable({loader: () => import(/*webpackChunkName:'Bug'*/'@/views/personnelManagement/personAndCheckGroup/personAndCheckGroup'),loading: Loading});
const PersonAndGroup = Loadable({loader: () => import(/*webpackChunkName:'Bug'*/'@/views/personnelManagement/personAndGroup/personAndGroup'),loading: Loading});
const Condition = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/conditionManage/condition'),loading: Loading});
const ConditionAndGroupIdentity = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/conditionManage/conditionAndGroupIdentity/conditionAndGroupIdentity'),loading: Loading});
const GroupIdentity = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/groupManage/groupIdentity/groupIdentity'),loading: Loading});
const GroupMana = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/groupManage/groupMana/groupMana'),loading: Loading});
const GroupIdentityAndGroup = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/groupManage/groupIdentityAndGroup/groupIdentityAndGroup'),loading: Loading});
const PointManage = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkPointManage/pointManage/pointManage'),loading: Loading});
const CheckItemManage = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkItemManage/checkItem/checkItem'),loading: Loading});
const CheckItemResultSelector = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkItemManage/checkItemResultSelector/checkItemResultSelector'),loading: Loading});
const CheckGroupManage = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkGroupManage/checkGroupManage'),loading: Loading});
const CheckTypeManage = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkGroupManage/checkTypeManage'),loading: Loading});
const ProvisionsManage = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/provisionsManage/provisions'),loading: Loading});
const PointAndCheckGroup = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkPointManage/pointAndCheckGroup/pointAndCheckGroup'),loading: Loading});
const PointAndGroup = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkPointManage/pointAndGroup/pointAndGroup'),loading: Loading});
const PointAndCheckItem = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkPointManage/checkPointAndCheckItem/checkPointAndCheckItem'),loading: Loading});
const PointAndProvisions = Loadable({loader: () => import(/*webpackChunkName:'Dashboard'*/'@/views/checkPointManage/pointAndProvisions/pointAndProvisions'),loading: Loading});
const Error404 = Loadable({loader: () => import(/*webpackChunkName:'Error404'*/'@/views/error/404'),loading: Loading});



export default [
  { path: "/dashboard", component: Dashboard, roles: ["admin","editor","guest"] },
  //情境创建
  { path: "/situationCreate/situationCreate", component: SituationCreate, roles: ["admin","editor","guest"] },
  //权限维护
  { path: "/personnelManagement/permissionMaintenance/permissionMaintenance", component: PermissionMaintenance, roles: ["admin","editor","guest"] },
  //人员管理
  { path: "/personnelManagement/personnelInformation/personnelInformation", component: PersonnelInformation, roles: ["admin","editor","guest"] },
  //人员与查核组
  { path: "/personnelManagement/personAndCheckGroup", component: PersonAndCheckGroup, roles: ["admin","editor","guest"] },
  //人员与单位
  { path: "/personnelManagement/personAndGroup", component: PersonAndGroup, roles: ["admin","editor","guest"] },
  //查核条件管理
  { path: "/conditionManage/condition", component: Condition, roles: ["admin","editor","guest"] },
  //条件和单位分类
  { path: "/conditionManage/conditionAndGroupIdentity/conditionAndGroupIdentity", component: ConditionAndGroupIdentity, roles: ["admin","editor","guest"] },
  //单位分类维护
  { path: "/groupManage/groupIdentity/groupIdentity", component: GroupIdentity, roles: ["admin","editor","guest"] },
  //单位维护
  { path: "/groupManage/groupMana/groupMana", component: GroupMana, roles: ["admin","editor","guest"] },
  //单位与单位分类
  { path: "/groupManage/groupIdentityAndGroup/groupIdentityAndGroup", component: GroupIdentityAndGroup, roles: ["admin","editor","guest"] },
  //要点维护
  { path: "/checkPointManage/pointManage/pointManage", component: PointManage, roles: ["admin","editor","guest"] },
  //查核项维护
  { path: "/checkItemManage/checkItem/checkItem", component: CheckItemManage, roles: ["admin","editor","guest"] },
  //查核项查核结果下拉选项管理
  { path: "/checkItemManage/checkItemResultSelector/checkItemResultSelector", component: CheckItemResultSelector, roles: ["admin","editor","guest"] },
  //要点与单位
  { path: "/checkPointManage/pointAndGroup/pointAndGroup", component: PointAndGroup, roles: ["admin","editor","guest"] },
  //要点与查核组
  { path: "/checkPointManage/pointAndCheckGroup/pointAndCheckGroup", component: PointAndCheckGroup, roles: ["admin","editor","guest"] },
  //要点与查核项
  { path: "/checkPointManage/checkPointAndCheckItem/checkPointAndCheckItem", component: PointAndCheckItem, roles: ["admin","editor","guest"] },
  //要点与条文条款
  { path: "/checkPointManage/pointAndProvisions/pointAndProvisions", component: PointAndProvisions, roles: ["admin","editor","guest"] },
  //查核组管理
  { path: "/checkGroupManage/checkGroupManage", component: CheckGroupManage, roles: ["admin","editor","guest"] },
  //查核方式管理
  { path: "/checkGroupManage/checkTypeManage", component: CheckTypeManage, roles: ["admin","editor","guest"] },
  //条文条款管理
  { path: "/provisionsManage/provisions", component: ProvisionsManage, roles: ["admin","editor","guest"] },
  //错误
  { path: "/error/404", component: Error404 },

];
