import Layout from '@/layout'

const dataRouter = {
  path: '/data',
  component: Layout,
  redirect: 'noRedirect',
  name: 'richSet',
  meta: {
    title: '数据统计',
    icon: 'data'
  },
  children: [
    {
      path: 'deal',
      component: () => import('@/pages/data/deal'),
      name: 'data_deal',
      meta: { title: '交易数据', noCache: true }
    },
    {
      path: 'next',
      component: () => import('@/pages/data/next'),
      name: 'data_next',
      meta: { title: '代理统计', noCache: true }
    },
    {
      path: 'rank',
      component: () => import('@/pages/data/rank'),
      name: 'data_rank',
      meta: { title: '排行榜', noCache: true }
    },
    {
      path: 'visual',
      component: () => import('@/pages/data/visual'),
      name: 'data_visual',
      hidden: true,
      meta: { title: '数据可视化', noCache: true }
    },
    {
      path: 'screen',
      component: () => import('@/pages/data/screen'),
      name: 'data_screen',
      meta: { title: '数据大屏', noCache: true }
    }
  ]
}

export default dataRouter
