diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue index 8689ca3fc..410797c36 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/02_NameChangeHistory.vue @@ -33,6 +33,9 @@ const profileId = ref(route.params.id.toString()); const empType = ref( route.name === "registryNewByid" ? "" : "-employee" ); +const props = defineProps({ + fetchDataPersonal: { type: Function, require: true }, +}); const editId = ref(""); const dialog = ref(false); @@ -371,6 +374,7 @@ async function addData() { subId.value = res.data.result; fetchData(profileId.value); + props.fetchDataPersonal(); success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => { @@ -392,6 +396,7 @@ function editData(idData: string) { ) .then(() => { fetchData(profileId.value); + props.fetchDataPersonal(); success($q, "บันทึกข้อมูลสำเร็จ"); }) .catch((err) => { diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue index 0903c410d..c028314bb 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/Main.vue @@ -12,6 +12,9 @@ import SpecialSkill from "@/modules/04_registryNew/components/detail/PersonalInf import FamilyNew from "@/modules/04_registryNew/components/detail/PersonalInformation/04_FamilyNew.vue"; const tab = ref("1"); +const props = defineProps({ + fetchDataPersonal: { type: Function, require: true }, +});