แก้ฟิลเตอร์ จากล่างขึ้นบนถึง พ้นราชการ

This commit is contained in:
setthawutttty 2024-12-03 15:28:53 +07:00
parent 35422c6963
commit e9280ca4f3
21 changed files with 260 additions and 69 deletions

View file

@ -41,6 +41,7 @@ const {
messageError,
success,
dialogMessageNotify,
onSearchDataTable,
} = mixin;
/**
@ -795,6 +796,14 @@ watch(
}
);
function onSearch() {
DataStore.rows = onSearchDataTable(
filterKeyword.value,
DataStore.rowsData,
columns.value ? columns.value : []
);
}
/** Hook*/
onMounted(async () => {
filterOrganizationOP.value = await DataStore.optionsTypeOc;
@ -853,6 +862,7 @@ onMounted(async () => {
outlined
debounce="300"
placeholder="ค้นหา"
@keydown.enter="onSearch"
>
<template v-slot:append>
<q-icon name="search" />
@ -1010,7 +1020,6 @@ onMounted(async () => {
ref="table"
:columns="columns"
:rows="DataStore.rows"
:filter="filterKeyword"
row-key="name"
flat
bordered