diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index ecf34e6b6..dec0d773f 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -397,7 +397,7 @@ const menuList = readonly([ { key: 9.4, label: "ลงเวลากรณีพิเศษ", - path: "/special-time", + path: "/timestamp-special", role: "leave", }, { diff --git a/src/modules/09_leave/interface/response/specialTime.ts b/src/modules/09_leave/interface/response/specialTime.ts new file mode 100644 index 000000000..318a5ed5d --- /dev/null +++ b/src/modules/09_leave/interface/response/specialTime.ts @@ -0,0 +1,11 @@ +interface DataRows { + fullname: string | null; + date: string | null; + dateFix: string | null; + type: string; + reason: string; + timeStamp: string; + unapprove?: string; // Make these properties optional + approve?: string; +} +export type { DataRows }; diff --git a/src/modules/09_leave/router.ts b/src/modules/09_leave/router.ts index 1e07cfd17..cc60e32ab 100644 --- a/src/modules/09_leave/router.ts +++ b/src/modules/09_leave/router.ts @@ -1,10 +1,13 @@ const workMain = () => import("@/modules/09_leave/views/WorkingMain.vue"); const leaveMain = () => import("@/modules/09_leave/views/LeaveListMain.vue"); -const reportMain = () => import("@/modules/09_leave/views/ReportMain.vue") -const leaveDetail = () => import("@/modules//09_leave/components/2_Leave/DetailLeave.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 reportMain = () => import("@/modules/09_leave/views/ReportMain.vue"); +const leaveDetail = () => + import("@/modules//09_leave/components/2_Leave/DetailLeave.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"); export default [ { @@ -17,25 +20,15 @@ export default [ Role: "coin", }, }, - { - path: "/change-round", - name: "/change-round", - component: ChangeRoundMain, - meta: { - Auth: true, - Key: [9], - Role: "coin", - }, + { + path: "/change-round", + name: "/change-round", + component: ChangeRoundMain, + meta: { + Auth: true, + Key: [9], + Role: "coin", }, - { - path: "/work-list", - name: "/work-list", - component: workMain, - meta: { - Auth: true, - Key: [9], - Role: "coin", - }, }, { path: "/work-list", @@ -48,8 +41,18 @@ export default [ }, }, { - path: "/special-time", - name: "/special-time", + path: "/work-list", + name: "/work-list", + component: workMain, + meta: { + Auth: true, + Key: [9], + Role: "coin", + }, + }, + { + path: "/timestamp-special", + name: "/timestamp-special", component: SpecialTimeMain, meta: { Auth: true,