hrms-mgt/src/modules/09_leave/router.ts
2025-04-25 13:58:59 +07:00

120 lines
2.6 KiB
TypeScript

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/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");
const LeaveHistoryMain = () =>
import("@/modules/09_leave/views/07_LeaveHistoryMain.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: "/checkin-report",
name: "checkinReport",
component: leaveReport,
meta: {
Auth: true,
Key: "SYS_WORK_REPORT",
Role: "STAFF",
},
},
{
path: "/leave-history",
name: "leaveHistory",
component: LeaveHistoryMain,
meta: {
Auth: true,
Key: "SYS_LEAVE_HISTORY",
Role: "STAFF",
},
},
];