ลบ debounce

This commit is contained in:
setthawutttty 2024-01-05 11:40:39 +07:00
parent 8a1fd45d11
commit 3070383469
6 changed files with 13 additions and 18 deletions

View file

@ -128,7 +128,6 @@ onMounted(async () => {
v-model="filterKeyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter.prevent="filterFn"
>

View file

@ -133,7 +133,6 @@ onMounted(async () => {
v-model="filterKeyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter.prevent="filterFn"
>

View file

@ -151,7 +151,6 @@ function filterFn() {
ref="filterRef"
@update:model-value="updateInput"
outlined
debounce="300"
placeholder="ค้นหา"
style="max-width: 200px"
class="col-xs-12 col-sm-3 col-md-2"

View file

@ -163,7 +163,6 @@ onMounted(() => {
v-model="filterKeyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter.prevent="filterFn"
>

View file

@ -269,7 +269,6 @@ onMounted(() => {
v-model="filterKeyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter.prevent="filterFn"
>

View file

@ -185,8 +185,10 @@ function editPage(id: string) {
router.push(`/discipline-appealcomplain/${id}`);
}
function filterFn() {
getData();
console.log("enter", filterKeyword.value);
console.log("enter", filterKeyword.value);
getData();
}
function close() {
@ -201,9 +203,9 @@ function editStatusReturn(data: any) {
}
/** ดึงข้อมูลเริ่มต้น */
function getData() {
async function getData() {
showLoader();
http
await http
.get(
config.API.appealMainList(
formData.status,
@ -237,10 +239,10 @@ function yearAll() {
getData();
}
function resetFilter(){
function resetFilter() {
filterKeyword.value = "";
getData()
};
getData();
}
/** เรียกใช้งาน ฟังชั่น ตอนเริ่มโหลดหน้า */
onMounted(async () => {
@ -354,12 +356,10 @@ onMounted(async () => {
v-model="filterKeyword"
ref="filterRef"
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter.prevent="filterFn"
>
<template v-slot:append>
<q-icon v-if="filterKeyword == ''" name="search" />
<q-icon
v-if="filterKeyword !== ''"
name="clear"
@ -435,10 +435,10 @@ onMounted(async () => {
>
<div v-if="col.name == 'no'">
{{
(currentPage - 1) * Number(pagination.rowsPerPage) +
props.rowIndex +
1
}}
(currentPage - 1) * Number(pagination.rowsPerPage) +
props.rowIndex +
1
}}
</div>
<div>
{{ col.value }}