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

116 lines
2.5 KiB
TypeScript
Raw Normal View History

const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue");
2023-10-06 13:32:54 +07:00
const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue");
const leaveDetail = () =>
import("@/modules/09_leave/components/2_Leave/DetailLeave.vue");
const leaveDetailReject = () =>
import("@/modules/09_leave/components/2_Leave/DetailLeaveReject.vue");
const RoundMain = () => import("@/modules/09_leave/views/RoundMain.vue");
const ChangeRoundMain = () =>
import("@/modules/09_leave/views/ChangeRoundMain.vue");
const SpecialTimeMain = () =>
import("@/modules/09_leave/views/SpecialTimeMain.vue");
const leaveReport = () =>
import("@/modules/09_leave/components/3_Report/LeaveReport.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: "/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",
// },
// },
];