รายชื่อลูกจ้างชั่วคราว
This commit is contained in:
parent
93746ca440
commit
6fa7b85a54
1 changed files with 7 additions and 3 deletions
|
|
@ -201,7 +201,12 @@ const visibleColumns = ref<String[]>([
|
||||||
async function fetchList() {
|
async function fetchList() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.registryNew("-temp"), { params: queryParams })
|
.get(config.API.registryNew("-temp"), {
|
||||||
|
params: {
|
||||||
|
...queryParams,
|
||||||
|
searchKeyword: queryParams.searchKeyword.trim(),
|
||||||
|
},
|
||||||
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
rows.value = await res.data.result.data;
|
rows.value = await res.data.result.data;
|
||||||
maxPage.value = Math.ceil(res.data.result.total / queryParams.pageSize);
|
maxPage.value = Math.ceil(res.data.result.total / queryParams.pageSize);
|
||||||
|
|
@ -343,11 +348,10 @@ onMounted(async () => {
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
style="max-width: 200px"
|
style="max-width: 200px"
|
||||||
class="q-ml-sm"
|
class="q-ml-sm"
|
||||||
clearable
|
|
||||||
@keydown.enter.prevent="(queryParams.page = 1), fetchList()"
|
@keydown.enter.prevent="(queryParams.page = 1), fetchList()"
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="queryParams.searchKeyword == ''" name="search" />
|
<q-icon name="search" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
<!-- แสดงคอลัมน์ใน table -->
|
<!-- แสดงคอลัมน์ใน table -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue