/* Layout */
import Layout from '@/layout/Layout'

export const reportRouters = [
  {
    path: 'report',
    component: Layout,
    redirect: '/controllerData',
    name: 'Report',
    meta: {
      title: '报表管理',
      icon: 'icon-config', // 图标
      permission: ['/report']// 权限名称
    },
    children: [
      {
        path: '/controllerData',
        name: 'ControllerData',
        component: () => import('@/views/report/controllerData'),
        meta: { title: '路灯数据查询', icon: '', permission: ['/controllerData'] }
      },
      {
        path: '/boxData',
        name: 'BoxData',
        component: () => import('@/views/report/boxData'),
        meta: { title: '灯箱数据查询', icon: '', permission: ['/boxData'] }
      },
      {
        path: '/quantityData',
        name: 'QuantityData',
        component: () => import('@/views/report/quantityData'),
        meta: { title: '用电量数据查询', icon: '', permission: ['/quantityData'] }
      },
      {
        path: '/dataStatistics',
        name: 'DataStatistics',
        component: () => import('@/views/report/statics'),
        meta: { title: '运营数据统计', icon: '', permission: ['/dataStatistics'] }
      }]
  }]
