diff --git a/src/modules/08_registryEmployee/views/Main.vue b/src/modules/08_registryEmployee/views/Main.vue index f2c3cec08..50d5ca07e 100644 --- a/src/modules/08_registryEmployee/views/Main.vue +++ b/src/modules/08_registryEmployee/views/Main.vue @@ -201,7 +201,12 @@ const visibleColumns = ref([ async function fetchList() { showLoader(); await http - .get(config.API.registryNew("-temp"), { params: queryParams }) + .get(config.API.registryNew("-temp"), { + params: { + ...queryParams, + searchKeyword: queryParams.searchKeyword.trim(), + }, + }) .then(async (res) => { rows.value = await res.data.result.data; maxPage.value = Math.ceil(res.data.result.total / queryParams.pageSize); @@ -343,11 +348,10 @@ onMounted(async () => { placeholder="ค้นหา" style="max-width: 200px" class="q-ml-sm" - clearable @keydown.enter.prevent="(queryParams.page = 1), fetchList()" >