/*
 * @Author: your name
 * @Date: 2021-07-22 15:04:09
 * @LastEditTime: 2021-08-02 09:00:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /TracerMethodology_PC/config/routes.js
 */
export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  // {
  //   path: '/welcome',
  //   name: 'welcome',
  //   icon: 'smile',
  //   component: './Welcome',
  // },
  {
    path: '/UserMana',
    name: '用户管理',
    icon: 'tool',
    component: './UserMana/index',
  },
  // {
  //   path: '/districtMana',
  //   name: '院区管理',
  //   icon: 'InsertRowLeftOutlined',
  //   component: './districtMana/index',
  // },
  {
    path: '/apportionmentLevel',
    name: '分摊层级设置',
    icon: 'NodeExpandOutlined',
    component: './apportionmentLevel/index',
  },
  {
    path: '/DepartmentMana',
    name: '科室管理',
    icon: 'BorderOuterOutlined',
    component: './DepartmentMana/index',
  },
  {
    path: '/responsibilityCenter',
    name: '责任中心管理',
    icon: 'CopyrightOutlined',
    component: './responsibilityCenter/index',
  },
  {
    path: '/responsibilityCenterConnect',
    name: '责任中心对应',
    icon: 'CopyrightOutlined',
    component: './responsibilityCenterConnect/index',
  },
  {
    path: '/accountingSubject',
    name: '会计科目管理',
    icon: 'ProfileOutlined',
    component: './accountingSubject/index',
  },
  {
    path: '/costProjectMana',
    name: '成本收入项目管理',
    icon: 'AccountBookOutlined',
    component: './costProjectMana/index',
  },
  {
    path: '/accountingSubjectConnect',
    name: '会计科目对应',
    icon: 'ProfileOutlined',
    component: './accountingSubjectConnect/index',
  },
  {
    path: '/costAllocationParamsSetting',
    name: '成本分摊参数设置',
    icon: 'ControlOutlined',
    component: './costAllocationParamsSetting/index',
  },
  {
    path: '/costAllocationParamsConnect',
    name: '成本分摊参数对应',
    icon: 'ClusterOutlined',
    component: './costAllocationParamsConnect/index',
  },
  {
    path: '/admin',
    name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  // {
  //   name: 'list.table-list',
  //   icon: 'table',
  //   path: '/list',
  //   component: './TableList',
  // },
  {
    path: '/',
    redirect: '/UserMana',
  },
  {
    component: './404',
  },
];
