const workMain = () => import("@/modules/09_leave/views/02_WorkingMain.vue");
const leaveMain = () => import("@/modules/09_leave/views/05_LeaveListMain.vue");
const leaveDetail = () =>
  import("@/modules/09_leave/components/05_Leave/DetailLeave.vue");
const leaveDetailReject = () =>
  import("@/modules/09_leave/components/05_Leave/DetailLeaveReject.vue");
const RoundMain = () => import("@/modules/09_leave/views/01_RoundMain.vue");
const ChangeRoundMain = () =>
  import("@/modules/09_leave/views/03_ChangeRoundMain.vue");
const SpecialTimeMain = () =>
  import("@/modules/09_leave/views/04_SpecialTimeMain.vue");
const leaveReport = () => import("@/modules/09_leave/views/06_ReportMain.vue");
export default [
  {
    path: "/round-time",
    name: "roundTime",
    component: RoundMain,
    meta: {
      Auth: true,
      Key: "SYS_WORK_ROUND",
      Role: "STAFF",
    },
  },
  {
    path: "/change-round",
    name: "changeRound",
    component: ChangeRoundMain,
    meta: {
      Auth: true,
      Key: "SYS_WORK_ROUND_EDIT",
      Role: "STAFF",
    },
  },
  {
    path: "/work-list",
    name: "workList",
    component: workMain,
    meta: {
      Auth: true,
      Key: "SYS_CHECKIN",
      Role: "STAFF",
    },
  },
  {
    path: "/timestamp-special",
    name: "timestampSpecial",
    component: SpecialTimeMain,
    meta: {
      Auth: true,
      Key: "SYS_CHECKIN_SPECIAL",
      Role: "STAFF",
    },
  },
  {
    path: "/leave",
    name: "leave",
    component: leaveMain,
    meta: {
      Auth: true,
      Key: "SYS_LEAVE_LIST",
      Role: "STAFF",
    },
  },
  {
    path: "/leave/detail/:id",
    name: "leaveDetail",
    component: leaveDetail,
    meta: {
      Auth: true,
      Key: "SYS_LEAVE_LIST",
      Role: "STAFF",
    },
  },
  {
    path: "/leave-reject/detail/:id",
    name: "leaveRejectDetail",
    component: leaveDetailReject,
    meta: {
      Auth: true,
      Key: "SYS_LEAVE_LIST",
      Role: "STAFF",
    },
  },
  {
    path: "/leave-report",
    name: "leaveReport",
    component: leaveReport,
    meta: {
      Auth: true,
      Key: "SYS_LEAVE_REPORT",
      Role: "STAFF",
    },
  },
  // {
  //   path: "/statistics-report",
  //   name: "/statistics-report",
  //   component: reportMain,
  //   meta: {
  //     Auth: true,
  //     Key: [9],
  //     Role: "leave",
  //   },
  // },
  // {
  //   path: "/statistics-report/:type",
  //   name: "/statistics-report-detail",
  //   component: reportDetail,
  //   meta: {
  //     Auth: true,
  //     Key: [9],
  //     Role: "leave",
  //   },
  // },
];
