report.js 3.78 KB
const reportRouter = [
  {
    path: '/account',
    // name: 'account',
    // component: Account,
    meta: {
      permissionPath: 'account'
    },
    component: () => import('@/views/account/acc'),
    children: [
      {
        path: '/',
        name: 'acc_daily',
        meta: {
          permissionPath: 'account'
        },
        component: () => import('@/views/account/daily')
      },
      {
        path: '/account/weekly',
        name: 'acc_weekly',
        meta: {
          permissionPath: 'account'
        },
        component: () => import('@/views/account/weekly'),
      },
      {
        path: '/account/monthly',
        name: 'acc_monthly',
        meta: {
          permissionPath: 'account'
        },
        component: () => import('@/views/account/Monthly'),
      },
      {
        path: '/account/yearly',
        name: 'acc_yearly',
        meta: {
          permissionPath: 'account'
        },
        component: () => import('@/views/account/yearly'),
      }
    ]
  },
  {
    path: '/mall',
    // name: 'mall',
    meta: {
      permissionPath: 'mall'
    },
    component: () => import('@/views/Mall/mall'),
    children: [
      {
        path: '/',
        name: 'mall_daily',
        meta: {
          permissionPath: 'mall'
        },
        component: () => import('@/views/Mall/daily'),
      },
      {
        path: '/mall/weekly',
        name: 'mall_weekly',
        meta: {
          permissionPath: 'mall'
        },
        component: () => import('@/views/Mall/weekly'),
      },
      {
        path: '/mall/monthly',
        name: 'mall_monthly',
        meta: {
          permissionPath: 'mall'
        },
        component: () => import('@/views/Mall/Monthly'),
      },
      {
        path: '/mall/yearly',
        name: 'mall_yearly',
        meta: {
          permissionPath: 'mall'
        },
        component: () => import('@/views/Mall/yearly'),
      }
    ]
  },
  {
    path: '/floor',
    // name: 'floor',
    // component: Floor,
    meta: {
      permissionPath: 'floor'
    },
    component: () => import('@/views/Floor/floor'),
    children: [
      {
        path: '/',
        name: 'floor_daily',
        meta: {
          permissionPath: 'floor'
        },
        component: () => import('@/views/Floor/daily'),
      },
      {
        path: '/floor/weekly',
        name: 'floor_weekly',
        meta: {
          permissionPath: 'floor'
        },
        component: () => import('@/views/Floor/weekly'),
      },
      {
        path: '/floor/monthly',
        name: 'floor_monthly',
        meta: {
          permissionPath: 'floor'
        },
        component: () => import('@/views/Floor/Monthly'),
      },
      {
        path: '/floor/yearly',
        name: 'floor_yearly',
        meta: {
          permissionPath: 'floor'
        },
        component: () => import('@/views/Floor/yearly'),
      }
    ]
  },
  {
    path: '/shop',
    // name: 'shop',
    meta: {
      permissionPath: 'shop'
    },
    component: () => import('@/views/Shop/shop'),
    children: [
      {
        path: '/',
        name: 'shop_daily',
        meta: {
          permissionPath: 'shop'
        },
        component: () => import('@/views/Shop/daily'),
      },
      {
        path: '/shop/weekly',
        name: 'shop_weekly',
        meta: {
          permissionPath: 'shop'
        },
        component: () => import('@/views/Shop/weekly'),
      },
      {
        path: '/shop/monthly',
        name: 'shop_monthly',
        meta: {
          permissionPath: 'shop'
        },
        component: () => import('@/views/Shop/Monthly'),
      },
      {
        path: '/shop/yearly',
        name: 'shop_yearly',
        meta: {
          permissionPath: 'shop'
        },
        component: () => import('@/views/Shop/yearly'),
      }
    ]
  }
]

export default reportRouter