import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const routes: AppRouteRecordRaw = {
  path: '/order',
  name: 'order',
  component: DEFAULT_LAYOUT,
  meta: {
    requiresAuth: true,
  },
  children: [
    {
      path: 'task-manage',
      name: 'TaskManage',
      component: () => import('@/views/order/task-manage/index.vue'),
      meta: {
        title: '预约任务管理',
        requiresAuth: true,
      },
    },
    {
      path: 'reservation-set',
      name: 'ReservationSet',
      component: () => import('@/views/order/reservation-set/index.vue'),
      meta: {
        title: '考点预约设置',
        requiresAuth: true,
      },
    },
    {
      path: 'student-import',
      name: 'StudentImport',
      component: () => import('@/views/order/student-import/index.vue'),
      meta: {
        title: '考生信息导入',
        requiresAuth: true,
      },
    },
    {
      path: 'student-manage',
      name: 'StudentManage',
      component: () => import('@/views/order/student-manage/index.vue'),
      meta: {
        title: '考生管理',
        requiresAuth: true,
      },
    },
    {
      path: 'order-record-manage',
      name: 'OrderRecordManage',
      component: () => import('@/views/order/order-record-manage/index.vue'),
      meta: {
        title: '预约名单详情',
        requiresAuth: true,
      },
    },
    {
      path: 'user-manage',
      name: 'AccountManage',
      component: () => import('@/views/order/user-manage/index.vue'),
      meta: {
        title: '账号管理',
        requiresAuth: true,
      },
    },
    {
      path: 'my-task',
      name: 'MyTask',
      component: () => import('@/views/order/my-task/index.vue'),
      meta: {
        title: '我的任务',
        requiresAuth: true,
      },
    },
  ],
};

export default routes;
