/* Layout */
import Layout from '../../views/layout/Layout'

export const attendanceRouters = [
  {
    path: '/attendance',
    component: Layout,
    redirect: '/atd',
    name: 'Atd',
    meta: {
      title: '考勤统计',
      icon: 'task', // 图标
      permission: ['/attendance']// 权限名称
    },
    children: [
      {
        path: '/listReport',
        name: 'ListReport',
        component: () => import('@/views/attendance/listReport'),
        meta: { title: '查询报表数据', icon: 'function', permission: ['/listReport'] }
      },
      {
        path: '/makeReport',
        name: 'MakeReport',
        component: () => import('@/views/attendance/makeReport'),
        meta: { title: '生成考勤报表', icon: 'function', permission: ['/makeReport'] }
      }
    ]
  },
  {
    path: '/atdSetting',
    component: Layout,
    redirect: '/atdSetting',
    name: 'AtdSetting',
    meta: {
      title: '考勤设置',
      icon: 'task', // 图标
      permission: ['/atdSetting']// 权限名称
    },
    children: [
      {
        path: '/atdRules',
        name: 'AtdRules',
        component: () => import('@/views/attendance/atdRules'),
        meta: { title: '考勤规则', icon: 'function', permission: ['/atdRules'] }
      },
      {
        path: '/specialDay',
        name: 'SpecialDay',
        component: () => import('@/views/attendance/specialDay'),
        meta: { title: '特殊考勤日管理', icon: 'function', permission: ['/specialDay'] }
      },
      {
        path: '/remarksLimit',
        name: 'RemarksLimit',
        component: () => import('@/views/attendance/remarksLimit'),
        meta: { title: '备注功能管理', icon: 'function', permission: ['/remarksLimit'] }
      }
    ]
  }
]
