/**
 * Created by Administrator on 2017/12/18 0018. 企业通讯录
 */
import dynamic from 'dva/dynamic';

// wrapper of dynamic
const dynamicWrapper = (app, models, component) =>
  dynamic({
    app,
    models: () => models.map(m => import(`../models/${m}.js`)),
    component
  });

export const EnterpriseAddressBook = app => {
  return {
    name: '企业通讯录',
    icon: 'qiyetongxunlu',
    path: 'Organization',
    children: [
      // {
      //   name: '组织架构',
      //   path: 'departmentmanagement',
      //   component: dynamicWrapper(app, ['profile'], () => import('../routes/Enterprise/Organization/DepartmentManagement')),
      // },
      // {
      //   name: '',//组织架构-批量导入
      //   title: '组织架构',//组织架构-批量导入
      //   path: 'importexportNav',
      //   component: dynamicWrapper(app, [], () => import('../routes/Enterprise/Organization/ImportExportNav')),
      // },
      // {
      //   name: '',//组织架构-离职记录
      //   title: '组织架构',//组织架构-离职记录
      //   path: 'resignationlist',
      //   component: dynamicWrapper(app, ['profile'], () => import('../routes/Enterprise/Organization/ResignationList')),
      // },
      // {
      //   name: '角色权限',
      //   path: 'Role',
      //   component: dynamicWrapper(app, ['monitor'], () => import('../routes/Enterprise/RoleAuthority/Role')),
      // },
      // {
      //   name: '',//人员信息
      //   title: '组织架构',
      //   path: 'PersonnelInformationNav',
      //   component: dynamicWrapper(app, ['profile'], () => import('../routes/Enterprise/PersonnelInformation/PersonnelInformationNav')),
      // },
      // {
      //   name: '人员列表',
      //   path: 'PersonnelList',
      //   component: dynamicWrapper(app, ['profile'], () => import('../routes/Enterprise/PersonnelList/PersonnelListNav')),
      // }
    ]
  };
};
