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: false,
            // 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: false,
            operates: [
              { title: '新增分组', code: 'GroupAdd' },
              { title: '删除分组', code: 'GroupDelete' },
              { title: '编辑分组', code: 'GroupEdit' },
              { title: '删除点位', code: 'GroupPointDelete' },
              { title: '编辑点位', code: 'GroupPointEdit' },
              { title: '导入点位', code: 'GroupPointImport' },
              { title: '导出点位', code: 'GroupPointExports' },
              { title: '模版下载', code: 'GroupTempDownload' },
              { title: '批量分组', code: 'GroupBatchGroup' },
              { title: '公式编辑', code: 'GroupFormulaEdit' },
            ],
          },
        },
      ],
    },
    // {
    //   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: false,
    //         // backApi: [],
    //       },
    //     },
    //   ],
    // },
  ],
};
export default equipment;
