From e9280ca4f324780a9190fba9db694f13d605ba63 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 3 Dec 2024 15:28:53 +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=20?= =?UTF-8?q?=E0=B8=88=E0=B8=B2=E0=B8=81=E0=B8=A5=E0=B9=88=E0=B8=B2=E0=B8=87?= =?UTF-8?q?=E0=B8=82=E0=B8=B6=E0=B9=89=E0=B8=99=E0=B8=9A=E0=B8=99=E0=B8=96?= =?UTF-8?q?=E0=B8=B6=E0=B8=87=20=E0=B8=9E=E0=B9=89=E0=B8=99=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../01_retirement/RetirementDetail.vue | 16 +++++- .../components/02_resign/Table.vue | 14 ++++- .../components/03_resignEmp/Table.vue | 22 ++++---- .../06_dismissOrder/DialogSendToCommand.vue | 53 +++++++++++-------- .../06_retirement/views/01_retirement.vue | 19 +++++-- .../06_retirement/views/04_exitInterview.vue | 13 ++++- .../06_retirement/views/05_deceased.vue | 14 ++++- .../06_retirement/views/06_dismissOrder.vue | 19 +++++-- .../07_insignia/components/2_Manage/Tab1.vue | 11 +++- .../07_insignia/components/2_Manage/Tab2.vue | 13 ++++- .../07_insignia/components/2_Manage/Tab3.vue | 29 ++++++---- src/modules/07_insignia/store.ts | 22 ++++++-- .../07_insignia/views/01_RoundMain.vue | 17 +++++- src/modules/09_leave/stores/RoundStores.ts | 3 ++ src/modules/09_leave/views/01_RoundMain.vue | 12 ++++- .../6_BasicInformation/Channel/MainPage.vue | 12 ++++- .../11_discipline/store/ChannelStore.ts | 3 ++ .../components/Director/MainPage.vue | 19 ++++++- .../components/Meeting/MainPage.vue | 12 ++++- .../store/DirectorStore.ts | 3 ++ .../12_evaluatePersonal/store/MeetingStore.ts | 3 ++ 21 files changed, 260 insertions(+), 69 deletions(-) diff --git a/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue b/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue index cc344037b..5c14be956 100644 --- a/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue +++ b/src/modules/06_retirement/components/01_retirement/RetirementDetail.vue @@ -31,6 +31,7 @@ const { date2Thai, dateToISO, findOrgName, + onSearchDataTable, } = mixin; const myForm = ref(null); @@ -120,6 +121,7 @@ const columns = ref([ }, ]); const rows = ref([]); +const rowsData = ref([]); const visibleColumns = ref([ "order", "name", @@ -157,7 +159,7 @@ async function fetchlistprofile(id: string) { // รายชื่อผู้เกษียณอายุราชการ if (data.profile !== null) { - rows.value = data.profile.map((e: any) => ({ + const listData = data.profile.map((e: any) => ({ id: e.id, profileId: e.profileId, order: e.order, @@ -183,6 +185,8 @@ async function fetchlistprofile(id: string) { child4: e.child4, child4Id: e.child4Id, })); + rows.value = listData; + rowsData.value = listData; } if (statusReport.value == false) { @@ -407,6 +411,14 @@ function updatemodalPersonal(modal: boolean) { modalPersonal.value = modal; } +async function onSearch() { + rows.value = onSearchDataTable( + filter.value, + rowsData.value, + columns.value ? columns.value : [] + ); +} + /** Hook */ onMounted(async () => { retireld.value = retireld_params.toString(); @@ -517,6 +529,7 @@ onMounted(async () => { placeholder="ค้นหา" style="max-width: 200px" class="q-ml-sm" + @keydown.enter="onSearch" >