/*
 * @Author: your name
 * @Date: 2021-09-03 14:28:27
 * @LastEditTime: 2022-03-29 17:25:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /MedicalWisdomCheckSys/config/routes.ts
 */
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/PlatformMana',
    name: '平台系统管理',
    icon: 'smile',
    access:'normalRouteFilter',
    routes: [
      {
        path: '/PlatformMana/generalSetting',
        name: '通用设置',
        component: './PlatformMana/generalSetting/index',
      },
      {
        path: '/PlatformMana/userMana',
        name: '用户管理',
        component: './PlatformMana/userMana/index',
      },
      {
        name: '角色管理',
        path: '/PlatformMana/roleManage',
        component: './PlatformMana/roleManage/index',
      },
      {
        name: '菜单管理',
        path: '/PlatformMana/menuManage',
        component: './PlatformMana/menuManage/index',
      },
      // {
      //   path: '/PlatformMana/districtMana',
      //   name: '院区管理',
      //   icon: 'InsertRowLeftOutlined',
      //   component: './PlatformMana/districtMana/index',
      // },
    ],
  },
  {
    path: '/GradeHospitalAccreditation',
    name: '等级医院评审',
    icon: 'smile',
    access:'normalRouteFilter',
    routes: [
      {
        path: '/GradeHospitalAccreditation/accreditationDetail',
        name: '评审细则',
        icon: 'smile',
        component: './GradeHospitalAccreditation/accreditationDetail/index',
      },
      {
        path: '/GradeHospitalAccreditation/articleManagement',
        name: '条文管理',
        icon: 'smile',
        component: './GradeHospitalAccreditation/articleManagement/index',
      },
      {
        path: '/GradeHospitalAccreditation/ledgerUpload',
        name: '台账上传',
        icon: 'smile',
        component: './GradeHospitalAccreditation/ledgerUpload/index',
      },
    ],
  },
  {
    path: '/DataManagement',
    name: '资料管理',
    icon: 'smile',
    access:'normalRouteFilter',
    routes: [
      {
        path: '/DataManagement/publicData',
        name: '公共资料',
        icon: 'smile',
        component: './DataManagement/publicData/index',
      },
    ],
  },
  {
    path: '/KeepImprove',
    name: '持续改进',
    icon: 'smile',
    access:'normalRouteFilter',
    routes: [
      {
        path: '/KeepImprove/qualityRating',
        name: '质量评级',
        icon: 'smile',
        component: './KeepImprove/qualityRating/index',
      },
      {
        path: '/KeepImprove/questionGatherAndRevise',
        name: '问题汇总与整改',
        icon: 'smile',
        component: './KeepImprove/questionGatherAndRevise/index',
      },
      {
        path: '/KeepImprove/departmentIssueRank',
        name: '单位问题排名',
        icon: 'smile',
        component: './KeepImprove/departmentIssueRank/index',
      },
      {
        path: '/KeepImprove/departmentScoreRank',
        name: '单位得分排名',
        icon: 'smile',
        component: './KeepImprove/departmentScoreRank/index',
      },
      {
        path: '/KeepImprove/questionGather',
        name: '问题汇总',
        icon: 'smile',
        component: './KeepImprove/questionGather/index',
      },
      {
        path: '/KeepImprove/indexNumGather',
        name: '指标汇总',
        icon: 'smile',
        component: './KeepImprove/indexNumGather/index',
      },
    ],
  },
  {
    path: '/',
    redirect: '/GradeHospitalAccreditation/accreditationDetail',
  },
  {
    path: '/reports/0',
    component: './reports',
  },
  {
    path: '/reports/1',
    component: './reports',
  },
  {
    path: '/reports/2',
    component: './reports',
  },
  {
    path: '/reports/3',
    component: './reports',
  },
  {
    path: '/reports/4',
    component: './reports',
  },
  {
    path: '/reports/5',
    component: './reports',
  },
  {
    path: '/reports/6',
    component: './reports',
  },
  {
    path: '/reports/7',
    component: './reports',
  },
  {
    path: '/reports/8',
    component: './reports',
  },
  {
    path: '/reports/9',
    component: './reports',
  },
  {
    path: '/reports/10',
    component: './reports',
  },
  {
    path: '/reports/11',
    component: './reports',
  },
  {
    path: '/reports/12',
    component: './reports',
  },
  {
    path: '/reports/13',
    component: './reports',
  },
  {
    path: '/reports/14',
    component: './reports',
  },
  {
    path: '/reports/15',
    component: './reports',
  },
  {
    component: './404',
  },
];
