From 11bc7e421d047860d0dd7c26e891a2edb917f94d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 16 May 2024 10:23:56 +0700 Subject: [PATCH] fix bug --- .../components/detail/PersonalInformation/01_Profile.vue | 5 +++++ .../components/detail/PersonalInformation/05_Education.vue | 2 ++ .../components/detail/PersonalInformation/Main.vue | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index a22ac5703..06b5c71ee 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -26,6 +26,10 @@ const { dialogMessageNotify, } = mixin; const { calculateAge, fetchPerson, filterSelector } = store; +const props = defineProps({ + fetchDataPersonal: { type: Function, require: true }, +}); + const profileId = ref( route.params.id ? route.params.id.toString() : "" ); @@ -291,6 +295,7 @@ async function editData() { .then((res) => { success($q, "บันทึกข้อมูลสำเร็จ"); getData(), (modal.value = false); + props.fetchDataPersonal?.(); }) .catch((e) => { messageError($q, e); diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue index ce0c78a82..c6ee665ff 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/05_Education.vue @@ -637,6 +637,8 @@ async function addData() { startYear: undefined, endYear: undefined, isDate: isDate.value === "false" ? false : true, + profileId: empType.value === "" ? id.value : undefined, + profileEmployeeId: empType.value !== "" ? id.value : undefined, }) .then(() => { fetchData(id.value); diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue index c028314bb..93480c550 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue @@ -47,7 +47,7 @@ const props = defineProps({ - +