import layoutHeaderAside from '@/layout/header-aside'

const meta = {requiresAuth: true}

export default {
  path: '/parking',
  name: 'parking',
  meta,
  redirect: {name: 'parking-setRules'},
  component: layoutHeaderAside,
  children: (pre => [
    {path: 'mangeParking', name: `${pre}mangeParking`, meta: {meta, title: '停车管理', cache: true},},
    {
      path: 'mangeParking/setRules',
      name: `${pre}setRules`,
      component: () => import('@/views/parking/mangeParking/setRules'),
      meta: {meta, title: '规则设置', cache: true}
    },
    {
      path: 'mangeParking/workStation',
      name: `${pre}workStation`,
      component: () => import('@/views/parking/mangeParking/workStation'),
      meta: {meta, title: '工作站', cache: true}
    },
    {
      path: 'mangeParking/costRules',
      name: `${pre}costRules`,
      component: () => import('@/views/parking/mangeParking/costRules'),
      meta: {meta, title: '计费规则', cache: true}
    },
    {
      path: 'mangeParking/timeGroup',
      name: `${pre}timeGroup`,
      component: () => import('@/views/parking/mangeParking/timeGroup'),
      meta: {meta, title: '时间组', cache: true}
    },
    {
      path: 'mangeParking/holidays',
      name: `${pre}holidays`,
      component: () => import('@/views/parking/mangeParking/holidays'),
      meta: {meta, title: '节假日管理', cache: true}
    },
    {
      path: 'mangeParking/setArea',
      name: `${pre}setArea`,
      component: () => import('@/views/parking/mangeParking/setArea'),
      meta: {meta, title: '区域设置', cache: true}
    },
    {
      path: 'mangeParking/mangeEquipment',
      name: `${pre}mangeEquipment`,
      component: () => import('@/views/parking/mangeParking/mangeEquipment'),
      meta: {meta, title: '设备管理', cache: true}
    },
    {
      path: 'mangeParking/mangeTraffic',
      name: `${pre}mangeTraffic`,
      component: () => import('@/views/parking/mangeParking/mangeTraffic'),
      meta: {meta, title: '车道管理', cache: true}
    },
    {path: 'mangeCar', name: `${pre}mangeCar`, meta: {meta, title: '车辆管理', cache: true},},
    {
      path: 'mangeCar/cateUser',
      name: `${pre}cateUser`,
      component: () => import('@/views/parking/mangeCar/cateUser'),
      meta: {meta, title: '车辆用户类别', cache: true}
    },
    {
      path: 'mangeCar/giveUserRights',
      name: `${pre}giveUserRights`,
      component: () => import('@/views/parking/mangeCar/giveUserRights'),
      meta: {meta, title: '车辆登记授权', cache: true}
    },
    {
      path: 'mangeCar/delayCar',
      name: `${pre}delayCar`,
      component: () => import('@/views/parking/mangeCar/delayCar'),
      meta: {meta, title: '车辆延期', cache: true}
    },
    {
      path: 'mangeCar/recharge',
      name: `${pre}recharge`,
      component: () => import('@/views/parking/mangeCar/recharge'),
      meta: {meta, title: '充值/退款', cache: true}
    },
    {
      path: 'mangeCar/backCard',
      name: `${pre}backCard`,
      component: () => import('@/views/parking/mangeCar/backCard'),
      meta: {meta, title: '车辆退卡', cache: true}
    },
    {
      path: 'mangeCar/recover',
      name: `${pre}recover`,
      component: () => import('@/views/parking/mangeCar/recover'),
      meta: {meta, title: '报停/恢复', cache: true}
    },
    {
      path: 'mangeCar/sendName',
      name: `${pre}sendName`,
      component: () => import('@/views/parking/mangeCar/sendName'),
      meta: {meta, title: '脱机名单下发', cache: true}
    },
    {path: 'carExcel', name: `${pre}carExcel`, meta: {meta, title: '车场报表', cache: true},},
    {path: 'carExcel/innnerCarExcel', name: `${pre}innnerCarExcel`,component: () => import('@/views/parking/carExcel/innnerCarExcel'), meta: {meta, title: '场内车辆报表', cache: true},},
    {path: 'carExcel/rightsExcel', name: `${pre}rightsExcel`,component: () => import('@/views/parking/carExcel/rightsExcel'), meta: {meta, title: '车辆授权报表', cache: true},},
    {path: 'carExcel/outInExcel', name: `${pre}outInExcel`,component: () => import('@/views/parking/carExcel/outInExcel'), meta: {meta, title: '车辆进出报表', cache: true},},
    {path: 'carExcel/delayExcel', name: `${pre}delayExcel`,component: () => import('@/views/parking/carExcel/delayExcel'), meta: {meta, title: '车辆延期报表', cache: true},},
    {path: 'carExcel/rechargeExcel', name: `${pre}rechargeExcel`,component: () => import('@/views/parking/carExcel/rechargeExcel'), meta: {meta, title: '充值退款报表', cache: true},},

  ])('parking-')
}