diff --git a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue index fa52d4272..d217c213f 100644 --- a/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue +++ b/src/modules/04_registryPerson/components/detail/Other/01_OtherInformation.vue @@ -126,8 +126,8 @@ async function getData() { await http .get(config.API.profileNewOtherByProfileId(profileId.value, empType.value)) .then((res) => { - rows.value = res.data.result; rowsMain.value = res.data.result; + serchDataTable(); }) .catch((e) => { messageError($q, e); @@ -242,6 +242,21 @@ function serchDataTable() { ); } +function handleDelete(rowId: string) { + // dialogRemove($q, async () => { + // showLoader(); + // try { + // await http.delete(config.API.profileChangeNameUpdate + `${rowId}`); + // await getData(); + // success($q, "ลบข้อมูลสำเร็จ"); + // } catch (err) { + // messageError($q, err); + // } finally { + // hideLoader(); + // } + // }); +} + onMounted(() => { getData(); }); @@ -361,6 +376,18 @@ onMounted(() => { > แก้ไขข้อมูล + + + ลบข้อมูล + { flat round @click="openDialogHistory(props.row.id)" - >ประวิติแก้ไขอื่นๆ + ประวัติแก้ไขอื่นๆ + { flat round @click="openDialogEdit(props.row)" - >แก้ไขข้อมูล + แก้ไขข้อมูล + + + ลบข้อมูล +