From 884ff3c48799fd77062fdbe14057449185f6ae08 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 16 May 2024 09:41:57 +0700 Subject: [PATCH 1/5] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=20=3D>=20=E0=B9=80=E0=B8=9E?= =?UTF-8?q?=E0=B8=B4=E0=B9=88=E0=B8=A1=20fetch=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=20personal=20=E0=B9=83=E0=B8=AB?= =?UTF-8?q?=E0=B8=A1=E0=B9=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/PersonalInformation/02_NameChangeHistory.vue | 5 +++++ .../components/detail/PersonalInformation/Main.vue | 5 ++++- src/modules/04_registryNew/components/detail/TabMain.vue | 8 +++++++- src/modules/04_registryNew/views/detailView.vue | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) 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 }, +});