fix
This commit is contained in:
parent
8662e7eabb
commit
bb14e16c5e
2 changed files with 6 additions and 6 deletions
|
|
@ -120,7 +120,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
async function fecthListTransfer() {
|
async function fecthListTransfer() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.listUserTransfer() + `?keyword=${filter.value}`)
|
.get(config.API.listUserTransfer())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let data = res.data.result;
|
let data = res.data.result;
|
||||||
rows.value = data.map((e: TransferList) => ({
|
rows.value = data.map((e: TransferList) => ({
|
||||||
|
|
@ -208,7 +208,6 @@ onMounted(async () => {
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
style="max-width: 200px"
|
style="max-width: 200px"
|
||||||
@keydown.enter.prevent="fecthListTransfer()"
|
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filter == ''" name="search" />
|
<q-icon v-if="filter == ''" name="search" />
|
||||||
|
|
@ -216,7 +215,7 @@ onMounted(async () => {
|
||||||
v-if="filter !== ''"
|
v-if="filter !== ''"
|
||||||
name="clear"
|
name="clear"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click="(filter = ''), fecthListTransfer()"
|
@click="filter = ''"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
@ -253,6 +252,7 @@ onMounted(async () => {
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
:rows-per-page-options="[10, 25, 50, 100]"
|
:rows-per-page-options="[10, 25, 50, 100]"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
:filter="filter"
|
||||||
>
|
>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
ทั้งหมด {{ rows.length }} รายการ
|
ทั้งหมด {{ rows.length }} รายการ
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ const columns = ref<QTableProps["columns"]>([
|
||||||
async function fecthList() {
|
async function fecthList() {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.portfolio+`?keyword=${filter.value}`)
|
.get(config.API.portfolio)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
rows.value = res.data.result;
|
rows.value = res.data.result;
|
||||||
})
|
})
|
||||||
|
|
@ -157,7 +157,6 @@ onMounted(async () => {
|
||||||
debounce="300"
|
debounce="300"
|
||||||
placeholder="ค้นหา"
|
placeholder="ค้นหา"
|
||||||
style="max-width: 200px"
|
style="max-width: 200px"
|
||||||
@keydown.enter.prevent="fecthList()"
|
|
||||||
>
|
>
|
||||||
<template v-slot:append>
|
<template v-slot:append>
|
||||||
<q-icon v-if="filter == ''" name="search" />
|
<q-icon v-if="filter == ''" name="search" />
|
||||||
|
|
@ -165,7 +164,7 @@ onMounted(async () => {
|
||||||
v-if="filter !== ''"
|
v-if="filter !== ''"
|
||||||
name="clear"
|
name="clear"
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click="filter = '',fecthList()"
|
@click="filter = ''"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
@ -202,6 +201,7 @@ onMounted(async () => {
|
||||||
:visible-columns="visibleColumns"
|
:visible-columns="visibleColumns"
|
||||||
:rows-per-page-options="[10, 25, 50, 100]"
|
:rows-per-page-options="[10, 25, 50, 100]"
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
:filter="filter"
|
||||||
>
|
>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
ทั้งหมด {{ rows.length }} รายการ
|
ทั้งหมด {{ rows.length }} รายการ
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue