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) => {