import Layout from '@/views/layout/Layout'
import {
  S_IFMT
} from 'constants'

export default {
  path: '/device',
  component: Layout,
  redirect: '/device/main',
  name: 'device',
  alwaysShow: true,
  meta: {
    title: 'deviceManage',
    icon: 'shebei'
  },
  children: [{
      path: '/device/zones',
      component: () => import('@/xt_pages/device/zone_main'),
      name: 'deviceZoneManage',
      meta: {
        title: 'deviceZoneManage'
      }
    },
    {
      path: '/device/groups',
      component: () => import('@/xt_pages/device/group_main'),
      name: 'deviceGroupManage',
      meta: {
        title: 'deviceGroupManage'
      }
    },
    {
      path: '/device/numbers',
      component: () => import('@/xt_pages/device/number_main'),
      name: 'deviceNumberManage',
      meta: {
        title: 'deviceNumberManage'
      }
    },
    {
      path: '/device/mode',
      component: () => import('@/xt_pages/mode/index'),
      name: 'modemanagement',
      meta: {
        title: 'modemanagement'
      }
    },
    {
      path: '/device/main',
      component: () => import('@/xt_pages/management/index'),
      // component: () => import("@/xt_pages/device/main"),
      name: 'dialysisMachineManage',
      meta: {
        title: 'dialysisMachineManage'
      }
    },
    {
      path: '/device/home',
      component: () => import('@/xt_pages/management/home'),
      name: 'managementHome',
      is_menu: false,
      hidden: true,
      meta: {
        title: '设备管理详情页'
      }
    }

  ]
}
