From 7be8cd2446aa301727642d1bc7a71d4583f01b98 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 23 Sep 2025 18:01:15 +0700 Subject: [PATCH] fix:add keyword filter --- src/modules/03_recruiting/components/Table.vue | 13 ++++++++++--- .../03_recruiting/views/01_compete/Detail.vue | 7 ++++--- .../views/02_qualify/DisableDetail.vue | 1 + 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/modules/03_recruiting/components/Table.vue b/src/modules/03_recruiting/components/Table.vue index cfa11a0b7..32f8f2576 100644 --- a/src/modules/03_recruiting/components/Table.vue +++ b/src/modules/03_recruiting/components/Table.vue @@ -75,8 +75,13 @@ function updatePagination(newPagination: any) { } } -function getList() { - props.fetchData?.(); +function getList(enter?: any) { + if (enter) { + pagination.value.page = 1; + props.fetchData?.(); + } else { + props.fetchData?.(); + } } watch( @@ -187,7 +192,9 @@ watch( outlined placeholder="ค้นหา" style="max-width: 200px" - @keydown.enter.prevent="props.onSearch?.()" + @keydown.enter.prevent=" + nornmalData ? props.onSearch?.() : getList(true) + " >