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({ - +