From b8f336d2bad559f4887350995e94b32f809d81e4 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 11 Dec 2024 11:49:34 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9F=E0=B8=B4?= =?UTF-8?q?=E0=B8=A5=E0=B9=80=E0=B8=95=E0=B8=AD=E0=B8=A3=E0=B9=8C=E0=B8=A3?= =?UTF-8?q?=E0=B8=B0=E0=B8=9A=E0=B8=9A=20=E0=B8=9A=E0=B8=A3=E0=B8=A3?= =?UTF-8?q?=E0=B8=88=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonalDetail/Information/Certicate.vue | 17 +++++++++++-- .../PersonalDetail/Information/Education.vue | 15 +++++++++++- .../Information/TableEducation.vue | 15 ++++-------- .../components/PersonalList/CardPosition.vue | 24 +++++++++++++++---- .../components/PersonalList/Table.vue | 20 +++++++++++++--- .../DialogOrder/DialogSendToCommand.vue | 13 ++++++++-- .../components/probation/MainAppoint.vue | 7 +++++- 7 files changed, 88 insertions(+), 23 deletions(-) diff --git a/src/modules/05_placement/components/PersonalDetail/Information/Certicate.vue b/src/modules/05_placement/components/PersonalDetail/Information/Certicate.vue index dac33a121..e672d9044 100644 --- a/src/modules/05_placement/components/PersonalDetail/Information/Certicate.vue +++ b/src/modules/05_placement/components/PersonalDetail/Information/Certicate.vue @@ -52,7 +52,7 @@ const mixin = useCounterMixin(); const { date2Thai, success, - + onSearchDataTable, messageError, showLoader, hideLoader, @@ -82,6 +82,7 @@ const modalHistory = ref(false); //modal ประวัติการ const profileId = ref(""); const rows = ref([]); +const rowsData = ref([]); const filter = ref(""); //search data table const visibleColumns = ref([]); profileData.certicate.columns.length == 0 @@ -333,6 +334,7 @@ const saveData = async () => { await props.fetch("Certificate"); await success($q, "บันทึกข้อมูลสำเร็จ"); rows.value = props.data; + rowsData.value = props.data; modal.value = false; }) .catch((e) => { @@ -359,6 +361,7 @@ const editData = async () => { await props.fetch("Certificate"); await success($q, "บันทึกข้อมูลสำเร็จ"); rows.value = props.data; + rowsData.value = props.data; modal.value = false; }) .catch((e) => { @@ -384,6 +387,7 @@ const clickDelete = async () => { await props.fetch("Certificate"); await success($q, "ลบข้อมูลสำเร็จ"); rows.value = props.data; + rowsData.value = props.data; modal.value = false; }) .catch((e) => { @@ -488,6 +492,14 @@ const getClass = (val: boolean) => { }; }; +function onSearch() { + rows.value = onSearchDataTable( + filter.value, + rowsData.value, + columns.value ? columns.value : [] + ); +} + watch(visibleColumns, async (count: String[], prevCount: String[]) => { changeProfileColumns("certicate", count); }); @@ -497,6 +509,7 @@ onMounted(() => { profileId.value = route.params.personalId.toString(); } rows.value = props.data; + rowsData.value = props.data; });