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

const meta = { requiresAuth: true }

export default {
  path: '/attendance',
  name: 'attendance',
  meta,
  redirect: { name: 'attendance-group' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'group', name: `${pre}group`, component: () => import('@/views/attendance/group'), meta: { meta, title: '考勤班组',cache: true } },
    { path: 'shift', name: `${pre}shift`, component: () => import('@/views/attendance/shift'), meta: { meta, title: '考勤班次',cache: true } },
		{ path: 'workMode', name: `${pre}workMode`, component: () => import('@/views/attendance/workMode'), meta: { meta, title: '考勤模式',cache: true  } },
		{ path: 'leave', name: `${pre}leave`, component: () => import('@/views/attendance/leave'), meta: { meta, title: '请假登记',cache: true } },
		{ path: 'overTime', name: `${pre}overTime`, component: () => import('@/views/attendance/overTime'), meta: { meta, title: '加班登记',cache: true } },
	/* 	{ path: 'specialHoliday', name: `${pre}specialHoliday`, component: () => import('@/views/attendance/specialHoliday'), meta: { meta, title: '特定休息日',cache: true } }, */
		{ path: 'holiday', name: `${pre}holiday`, component: () => import('@/views/attendance/holiday'), meta: { meta, title: '假日登记',cache: true  } },
		{ path: 'registr', name: `${pre}registr`, component: () => import('@/views/attendance/registr'), meta: { meta, title: '补卡登记',cache: true  } },
		{ path: 'studentDayRrport', name: `${pre}studentDayRrport`, component: () => import('@/views/attendance/studentDayRrport'), meta: { meta, title: '学生出勤日报表',cache: true } },
		{ path: 'teacherDayReport', name: `${pre}teacherDayReport`, component: () => import('@/views/attendance/teacherDayReport'), meta: { meta, title: '教工考勤日报表',cache: true } },
			{ path: 'studentMonthRrport', name: `${pre}studentMonthRrport`, component: () => import('@/views/attendance/studentMonthRrport'), meta: { meta, title: '学生出勤月报表',cache: true } },
		{ path: 'teacherMonthRrport', name: `${pre}teacherMonthRrport`, component: () => import('@/views/attendance/teacherMonthRrport'), meta: { meta, title: '教工考勤月报表',cache: true } },
		/* { path: 'month', name: `${pre}month`, component: () => import('@/views/attendance/month'), meta: { meta, title: '考勤月报表',cache: true } },
		{ path: 'personMonth', name: `${pre}personMonth`, component: () => import('@/views/attendance/personMonth'), meta: { meta, title: '人事月报表',cache: true } },
		{ path: 'concatMonth', name: `${pre}concatMonth`, component: () => import('@/views/attendance/concatMonth'), meta: { meta, title: '人事合并月报表',cache: true } }, */
		{ path: 'arrange', name: `${pre}arrange`, component: () => import('@/views/attendance/arrange'), meta: { meta, title: '考勤排班',cache: true  } },
		{ path: 'system', name: `${pre}system`, component: () => import('@/views/attendance/system'), meta: { meta, title: '考勤规则',cache: true  } },
		{ path: 'attendanceRecord', name: `${pre}attendanceRecord`, component: () => import('@/views/attendance/attendanceRecord'), meta: { meta, title: '考勤记录',cache: true  } }
  ])('attendance-')
}