hrms-mgt/src/modules/09_leave/router.ts

109 lines
2.4 KiB
TypeScript
Raw Normal View History

const workMain = () => import("@/modules/09_leave/views/02_WorkingMain.vue");
const leaveMain = () => import("@/modules/09_leave/views/05_LeaveListMain.vue");
const leaveDetail = () =>
2024-12-25 01:59:24 +07:00
import("@/modules/09_leave/components/05_Leave/DetailLeavePage.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");
// const CheckinReport = () =>
// import("@/modules/09_leave/views/!07_ReportCheckin.vue");
2023-10-06 13:32:54 +07:00
export default [
{
path: "/round-time",
2024-06-13 11:16:20 +07:00
name: "roundTime",
component: RoundMain,
meta: {
Auth: true,
Key: "SYS_WORK_ROUND",
Role: "STAFF",
},
},
{
path: "/change-round",
2024-06-13 11:16:20 +07:00
name: "changeRound",
component: ChangeRoundMain,
meta: {
Auth: true,
Key: "SYS_WORK_ROUND_EDIT",
Role: "STAFF",
},
},
{
path: "/work-list",
2024-06-13 11:16:20 +07:00
name: "workList",
component: workMain,
meta: {
Auth: true,
Key: "SYS_CHECKIN",
Role: "STAFF",
2023-10-06 13:32:54 +07:00
},
},
{
path: "/timestamp-special",
2024-06-13 11:16:20 +07:00
name: "timestampSpecial",
component: SpecialTimeMain,
meta: {
Auth: true,
Key: "SYS_CHECKIN_SPECIAL",
Role: "STAFF",
2023-10-06 13:32:54 +07:00
},
},
{
path: "/leave",
2024-06-13 11:16:20 +07:00
name: "leave",
component: leaveMain,
meta: {
Auth: true,
Key: "SYS_LEAVE_LIST",
Role: "STAFF",
2023-10-06 13:32:54 +07:00
},
},
{
path: "/leave/detail/:id",
2024-06-13 11:16:20 +07:00
name: "leaveDetail",
component: leaveDetail,
meta: {
Auth: true,
Key: "SYS_LEAVE_LIST",
Role: "STAFF",
2023-10-06 13:32:54 +07:00
},
},
{
path: "/leave-reject/detail/:id",
2024-06-13 11:16:20 +07:00
name: "leaveRejectDetail",
component: leaveDetailReject,
meta: {
Auth: true,
Key: "SYS_LEAVE_LIST",
Role: "STAFF",
},
},
{
path: "/leave-report",
2024-06-13 11:16:20 +07:00
name: "leaveReport",
component: leaveReport,
2023-12-01 14:29:21 +07:00
meta: {
Auth: true,
Key: "SYS_LEAVE_REPORT",
Role: "STAFF",
2023-12-01 14:29:21 +07:00
},
},
{
path: "/checkin-report",
name: "checkinReport",
component: leaveReport,
meta: {
Auth: true,
Key: "SYS_WORK_REPORT",
Role: "STAFF",
},
},
];