From a8cfcbd30459548a37a6bc7ac0a36d746ee6c441 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Tue, 7 Nov 2023 16:02:45 +0700 Subject: [PATCH] =?UTF-8?q?code=20for=20example=20form=20leave=20=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=9B=E0=B9=88=E0=B8=A7=E0=B8=A2=20=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=84=E0=B8=A5=E0=B8=AD=E0=B8=94=E0=B8=9A=E0=B8=B8?= =?UTF-8?q?=E0=B8=95=E0=B8=A3=20=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=A5?= =?UTF-8?q?=E0=B8=B2=E0=B8=81=E0=B8=B4=E0=B8=88=E0=B8=AA=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=95=E0=B8=B1=E0=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_leave/componenst/Forms/01_SickForm.vue | 229 +++++++++++++++++- .../componenst/Forms/04_HelpWifeBirthForm.vue | 5 + .../componenst/Forms/05_VacationForm.vue | 29 +++ src/modules/05_leave/views/SampleForm.vue | 31 ++- src/views/MainLayout.vue | 193 ++++++++++++--- 5 files changed, 434 insertions(+), 53 deletions(-) create mode 100644 src/modules/05_leave/componenst/Forms/05_VacationForm.vue diff --git a/src/modules/05_leave/componenst/Forms/01_SickForm.vue b/src/modules/05_leave/componenst/Forms/01_SickForm.vue index a9a018c..95627ea 100644 --- a/src/modules/05_leave/componenst/Forms/01_SickForm.vue +++ b/src/modules/05_leave/componenst/Forms/01_SickForm.vue @@ -1,4 +1,9 @@ + + diff --git a/src/modules/05_leave/views/SampleForm.vue b/src/modules/05_leave/views/SampleForm.vue index 8787429..5950011 100644 --- a/src/modules/05_leave/views/SampleForm.vue +++ b/src/modules/05_leave/views/SampleForm.vue @@ -13,10 +13,14 @@ const typeOption = reactive([ { id: 4, name: "ลาไปช่วยเหลือภริยาที่คลอดบุตร" }, ]); +async function onSubmit() { + +} + watch( () => type.value, () => { - // save store + // save store console.log("ประเภทการลา===>", type.value); } ); @@ -39,9 +43,9 @@ watch( -
-
-
+ +
+
- +
-
+ + +
+ + +
+
diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 1cec21a..09aca69 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -77,12 +77,21 @@ const doLogout = () => { - +
- +
-
+
ระบบทรัพยากรบุคคล
กรุงเทพมหานคร
@@ -92,34 +101,79 @@ const doLogout = () => {
- - + + - +
- + - {{ notiList.length - }} + {{ notiList.length }}
การแจ้งเตือน
- +
- + - + {{ n.sender[0] }} @@ -129,26 +183,54 @@ const doLogout = () => { {{ n.body }} - {{ n.timereceive - }} + {{ n.timereceive }}
- +
- +
- +