From 48e8037099e73cdb8ae4deda4091d06e91a4aca8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 10 Nov 2023 13:28:42 +0700 Subject: [PATCH] =?UTF-8?q?api=20=20=E0=B8=A3=E0=B8=B0=E0=B8=9A=E0=B8=9A?= =?UTF-8?q?=20=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9B=E0=B8=8F=E0=B8=B4=E0=B8=9A=E0=B8=B1=E0=B8=95=E0=B8=B4?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 6 +- src/api/09_leave/api.leave.ts | 6 + src/app.config.ts | 6 + .../components/3_WorkTime/DialogForm.vue | 213 ++++++++++++------ .../09_leave/interface/response/round.ts | 87 ++++--- src/modules/09_leave/stores/RoundStores.ts | 161 +++++++------ src/modules/09_leave/views/RoundMain.vue | 139 +++++++----- 7 files changed, 383 insertions(+), 235 deletions(-) create mode 100644 src/api/09_leave/api.leave.ts diff --git a/index.html b/index.html index de8acc5bb..657cc7754 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,9 @@ - - - + + + ระบบทรัพยากรบุคคล diff --git a/src/api/09_leave/api.leave.ts b/src/api/09_leave/api.leave.ts new file mode 100644 index 000000000..f33bde32b --- /dev/null +++ b/src/api/09_leave/api.leave.ts @@ -0,0 +1,6 @@ +import env from "../index"; +const leave = `${env.API_URI}/leave`; +export default { + roundDutytime: () => `${leave}/duty-time`, + roundDutytimeByid: (id: string) => `${leave}/duty-time/${id}`, +}; diff --git a/src/app.config.ts b/src/app.config.ts index 801a88941..d3f9ae69d 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -43,6 +43,9 @@ import message from "./api/00_dashboard/api.message"; /** API reports */ import reports from "./api/reports/api.report"; +/** API ระบบลงเวลา */ +import leave from "./api/09_leave/api.leave"; + // environment variables export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL; export const qualifyDisableExamPanel = import.meta.env @@ -86,6 +89,9 @@ const API = { //reports ...reports, + + /**leave */ + ...leave, }; export default { diff --git a/src/modules/09_leave/components/3_WorkTime/DialogForm.vue b/src/modules/09_leave/components/3_WorkTime/DialogForm.vue index dfa142987..56310434a 100644 --- a/src/modules/09_leave/components/3_WorkTime/DialogForm.vue +++ b/src/modules/09_leave/components/3_WorkTime/DialogForm.vue @@ -1,39 +1,71 @@