/** 平台管理 */
const platformRoutes = {
  path: '/platform',
  name: 'Platform',
  component: 'MENU_LAYOUT',
  meta: {
    icon: '',
    title: '平台管理',
  },
  redirect: '',
  children: [
    {
      path: 'user',
      name: 'User',
      meta: {
        icon: 'UserOutlined',
        title: '用户管理',
      },
      children: [
        {
          // 组织管理
          path: 'department',
          name: 'UserDepartment',
          component: '/auth/dept/dept',
          meta: {
            icon: '',
            title: '组织管理',
          },
        },
        {
          // 角色管理
          path: 'role',
          name: 'UserRole',
          component: '/system/role/role',
          meta: {
            icon: '',
            title: '角色管理',
          },
        },
        {
          // 账号管理
          path: 'account',
          component: '/system/user/user',
          name: 'UserAccount',
          meta: {
            icon: '',
            title: '账号管理',
          },
        },
        {
          // 账号管理
          path: 'person',
          name: 'Person',
          component: '/todo/todo',
          meta: {
            icon: '',
            title: '人员分组',
          },
        },
      ],
    },
    {
      // 菜单管理
      path: 'menu',
      name: 'SystemMenu',
      component: '/system/menu/menu',
      meta: {
        icon: 'UserOutlined',
        title: '菜单管理',
      },
    },
    {
      // 权限管理
      path: 'permission',
      name: 'SystemPermission',
      component: '/system/permission/PagePermission',
      meta: {
        icon: 'UserOutlined',
        title: '权限管理',
      },
    },
    {
      path: 'dictionary',
      name: 'SystemDictionary',
      component: '/system/dictionary/dictionary',
      meta: {
        icon: 'UserOutlined',
        title: '字典管理',
      },
    },
    {
      path: 'approval',
      name: 'SystemApproval',
      component: '/system/approval/PageApproval',
      meta: {
        icon: 'UserOutlined',
        title: '审批管理',
      },
    },
    {
      path: 'approval-node',
      name: 'SystemApprovalNode',
      component: '/system/approval/PageApprovalNode',
      meta: {
        activeMenu: '/platform/approval',
        icon: 'UserOutlined',
        title: '编辑审批流程',
      },
    },
    {
      path: 'surveillance',
      name: 'SystemSurveillance',
      component: '/system/surveillance/PageSurveillance',
      meta: {
        icon: 'PlatformSurveillanceIcon',
        title: '院区监控区域管理',
      },
    },
  ],
};

export default platformRoutes;
