import Layout from '@/layout'

const statisticsChartsRoutes = {
  path: '/statisticsCharts',
  component: Layout,
  meta: {
    title: '统计图表', keepAlive: false
  },
  children: [
    {
      path: '/statisticsCharts',
      name: 'StatisticsCharts',
      redirect: 'flight',
      component: () => import('@/views/statisticsCharts'),
      meta: {
        title: '统计图表',
        imgstyle: 'ic_list_nav_arrive_default.png',
        imgstyleup: 'ic_list_nav_arrive_check.png',
        keepAlive: false
      },
      children: [
        {
          path: 'flight',
          name: 'FlightStatisticsCharts',
          hidden: true,
          component: () => import('@/views/statisticsCharts/views/flightStatisticsCharts'),
          meta: { title: '航班量统计', keepAlive: false }
        },
        {
          path: '/statisticsCharts/node',
          name: 'NodeStatisticsCharts',
          hidden: true,
          component: () => import('@/views/statisticsCharts/views/nodeStatisticsCharts'),
          meta: { title: '扫描节点与位置分析', keepAlive: false }
        },
        {
          path: '/statisticsCharts/baggage',
          name: 'BaggageStatisticsCharts',
          hidden: true,
          component: () => import('@/views/statisticsCharts/views/baggageStatisticsCharts'),
          meta: { title: '行李统计', keepAlive: false }
        }
      ]
    }
  ]
}

export default [statisticsChartsRoutes]
