// 路灯设备管理部分路由
/* Layout */
import Layout from '@/layout/Layout'

export const deviceRouters = [
  {
    path: 'lampDevice',
    component: Layout,
    redirect: '/busController',
    name: 'LampDevice',
    alwaysShow: true,
    meta: {
      title: '设备管理',
      icon: 'icon-device', // 图标
      permission: ['/lampDevice']// 权限名称
    },
    children: [
      {
        path: '/busController',
        name: 'BusController',
        component: () => import('@/views/deviceManage/busController'),
        meta: { title: '控制器管理', icon: '', permission: ['/busController'], keepAlive: true }
      },
      {
        path: '/busLamppost',
        name: 'BusLamppost',
        component: () => import('@/views/deviceManage/busLamppost'),
        meta: { title: '灯杆管理', icon: '', permission: ['/busLamppost'], keepAlive: true }
      },
      {
        path: '/busLamp',
        name: 'BusLamp',
        component: () => import('@/views/deviceManage/busLamp'),
        meta: { title: '路灯管理', icon: '', permission: ['/busLamp'], keepAlive: true }
      },
      {
        path: '/busLampbox',
        name: 'BusLampbox',
        component: () => import('@/views/deviceManage/busLampbox'),
        meta: { title: '灯箱管理', icon: '', permission: ['/busLampbox'], keepAlive: true }
      },
      {
        path: '/busCircuit',
        name: 'BusCircuit',
        component: () => import('@/views/deviceManage/busCircuit'),
        meta: { title: '回路管理', icon: '', permission: ['/busCircuit'], keepAlive: true }
      },
      {
        path: '/busGroup',
        name: 'BusGroup',
        component: () => import('@/views/deviceManage/busGroup'),
        meta: { title: '分组管理', icon: '', permission: ['/busGroup'], keepAlive: true }
      },
      {
        path: '/devLogList',
        component: () => import('@/views/deviceManage/listLog'),
        name: 'DevLogList',
        meta: { title: '设备参数下发', permission: ['/devLogList'] }
      }
    ]
  }
]
