import Layout from '@/layout';

const deviceRoutes = {
  path: '/device',
  component: Layout,
  redirect: '/device/index',
  name: 'Devices',
  alwaysShow: true,
  meta: {
    title: '设备管理',
    icon: 'device',
    permissions: ['view menu admindevice'],
  },
  children: [
    {
      path: 'device',
      component: () => import('@/views/device/index'),
      name: 'Device',
      meta: { title: '设备列表', icon: 'devicelist', permissions: ['manage device'] },
    },
    {
      path: 'categories',
      component: () => import('@/views/device/categories'),
      name: 'Categories',
      meta: { title: '设备分类', icon: 'tree-table', permissions: ['manage categories'] },
    },
    {
      path: 'model_numbers',
      component: () => import('@/views/device/model_numbers'),
      name: 'ModelNumbers',
      meta: { title: '设备型号', icon: 'tree-table', permissions: ['manage model_numbers'] },
    },
    {
      path: 'DeviceStutus',
      component: () => import('@/views/device/devicedtutus'),
      name: 'DeviceStutus',
      meta: { title: '设备废纸篓', icon: 'devicestutus', permissions: ['manage user'] },
    },
    {
      path: 'addDevice',
      component: () => import('@/views/device/addDevice'),
      name: 'addDevice',
      meta: { title: '添加设备', icon: 'deviceadd', permissions: ['manage user'] },
    },
    {
      path: 'deviceranqi',
      component: () => import('@/views/device/deviceranqi'),
      name: 'deviceranqi',
      meta: { title: '燃气流量计', icon: 'ranqi', permissions: ['manage user'] },
    },
  ],
};
export default deviceRoutes;
