From 9f4aeec57593ef8cba592a23e94388788fdaefc4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 19 Aug 2024 09:40:57 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4=20=3D>=20=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88?= =?UTF-8?q?=E0=B9=89=E0=B8=B2=E0=B8=87=20=E0=B8=9B=E0=B8=A3=E0=B8=B1?= =?UTF-8?q?=E0=B8=9A=20load?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/Employee/01_DataEmployee.vue | 29 +++++++++---------- .../detail/Employee/02_Employment.vue | 6 ++-- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/Employee/01_DataEmployee.vue b/src/modules/04_registryPerson/components/detail/Employee/01_DataEmployee.vue index 230ff4f78..ad174cacf 100644 --- a/src/modules/04_registryPerson/components/detail/Employee/01_DataEmployee.vue +++ b/src/modules/04_registryPerson/components/detail/Employee/01_DataEmployee.vue @@ -27,7 +27,6 @@ const { date2Thai, messageError, dialogConfirm, - dialogMessageNotify, } = useCounterMixin(); const profileId = ref( @@ -124,9 +123,9 @@ function onSubmit() { showLoader(); http .put(config.API.informationEmployee(profileId.value), formData) - .then(() => { - success($q, "บันทึกข้อมูลสำเร็จ"); - fetchData(); + .then(async () => { + await fetchData(); + await success($q, "บันทึกข้อมูลสำเร็จ"); onCloseDialog(); }) .catch((err) => { @@ -386,7 +385,7 @@ onMounted(() => { - + {
-
+
{ :rules="[(val: string) => !!val || `${'กรุณากรอกกลุ่มงาน'}`]" />
-
+
{ :rules="[(val: string) => !!val || `${'กรุณากรอกสายงาน'}`]" />
-
+
{ :rules="[(val: string) => !!val || `${'กรุณากรอกตำแหน่งทางสายงาน'}`]" />
-
+
{
-
+
{ />
-
+
{
-
+
{ />
-
+
{ />
-
+
{ />
-
+
{ - success($q, "บันทึกข้อมูลสำเร็จ"); - fetchListEmployment(); + .then(async () => { + await fetchListEmployment(); + await success($q, "บันทึกข้อมูลสำเร็จ"); onCloseDialog(); }) .catch((err) => {