From cb4850ec2734421f05c5db78020e526828dee201 Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Fri, 27 Oct 2023 10:54:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B8=9B?= =?UTF-8?q?=E0=B8=B5=E0=B8=9B=E0=B8=B1=E0=B8=88=E0=B8=88=E0=B8=B8=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=20=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87?= =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=AD=E0=B8=A2=E0=B9=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=87=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=A5=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_leave/componenst/Calendar.vue | 435 +++++++++---------- src/modules/05_leave/views/Main.vue | 6 +- 2 files changed, 213 insertions(+), 228 deletions(-) diff --git a/src/modules/05_leave/componenst/Calendar.vue b/src/modules/05_leave/componenst/Calendar.vue index ed7386d..b956b87 100644 --- a/src/modules/05_leave/componenst/Calendar.vue +++ b/src/modules/05_leave/componenst/Calendar.vue @@ -1,214 +1,194 @@ diff --git a/src/modules/05_leave/views/Main.vue b/src/modules/05_leave/views/Main.vue index 3dbd1cf..14c67c8 100644 --- a/src/modules/05_leave/views/Main.vue +++ b/src/modules/05_leave/views/Main.vue @@ -4,6 +4,7 @@
รายการลา
+ {{ dateMonth }}
@@ -153,7 +154,10 @@ import type { DataDateMonthObject } from "@/modules/05_leave/interface/request/C const router = useRouter() const currentTab = ref("calendar") //ระบุ tab ใช้งานอยู่ calendar=รายการ list=รายการ -const dateMonth = ref(new Date().getFullYear()) +const dateMonth = ref({ + month: new Date().getMonth(), // Months are 0-based in JavaScript, so we add 1 to get the actual month. + year: new Date().getFullYear(), +}) const dateYear = ref(new Date().getFullYear()) const mixin = useCounterMixin() //เรียกฟังก์ชันกลาง