const Base = () => import('/nerv-lib/saas/view/system/layout/content.vue');
const equipment = {
  path: '/equipmentManage',
  name: 'EquipmentManage',
  meta: { title: '设备管理', icon: 'shebeiguanli', index: 1 },
  redirect: { name: 'Ledger' },
  children: [
    {
      path: 'ledger',
      name: 'Ledger',
      meta: { title: '设备台账', hideChildren: true, icon: 'shebeiguanli' },
      component: Base,
      redirect: { name: 'LedgerIndex' },
      children: [
        {
          path: 'index',
          name: 'LedgerIndex',
          // component: () => import('/nerv-lib/saas/view/menuManage/index.vue'),
          component: () => import('/@/view/equipmentManage/ledger/index.vue'),
          meta: {
            title: '设备台账',
            keepAlive: true,
            // backApi: [],
          },
        },
      ],
    },
    {
      path: 'group',
      name: 'Group',
      meta: { title: '分组管理', hideChildren: true, icon: 'shebeiguanli' },
      component: Base,
      redirect: { name: 'GroupIndex' },
      children: [
        {
          path: 'index',
          name: 'GroupIndex',
          component: () => import('/@/view/equipmentManage/group/index.vue'),
          meta: {
            title: '分组管理',
            keepAlive: true,
            // backApi: [],
          },
        },
      ],
    },
    // {
    //   path: 'energyMapping',
    //   name: 'EnergyMapping',
    //   meta: { title: '能耗映射', hideChildren: true, icon: 'shebeiguanli' },
    //   component: Base,
    //   redirect: { name: 'EnergyMappingIndex' },
    //   children: [
    //     {
    //       path: 'index',
    //       name: 'EnergyMappingIndex',
    //       component: () => import('/@/view/equipmentManage/energyMapping/index.vue'),
    //       meta: {
    //         title: '能耗映射',
    //         keepAlive: true,
    //         // backApi: [],
    //       },
    //     },
    //   ],
    // },
  ],
};
export default equipment;
