รายชื่อลูกจ้างชั่วคราว

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-04 09:29:54 +07:00
parent 93746ca440
commit 6fa7b85a54

View file

@ -201,7 +201,12 @@ const visibleColumns = ref<String[]>([
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()"
>
<template v-slot:append>
<q-icon v-if="queryParams.searchKeyword == ''" name="search" />
<q-icon name="search" />
</template>
</q-input>
<!-- แสดงคอลมนใน table -->