filter ==> ข้อมูลเครื่องราชอิสริยาภรณ์

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-12 14:29:49 +07:00
parent b4c9762a2a
commit 6b980a118b
3 changed files with 23 additions and 19 deletions

View file

@ -15,8 +15,14 @@ import dialogHeader from "@/components/DialogHeader.vue";
const $q = useQuasar();
const router = useRouter();
const store = useInsigniaDataStore();
const { dialogConfirm, success, messageError, showLoader, hideLoader } =
useCounterMixin();
const {
dialogConfirm,
success,
messageError,
showLoader,
hideLoader,
onSearchDataTable,
} = useCounterMixin();
// Table
const filterKeyword = ref<string>("");
@ -93,7 +99,6 @@ const editId = ref<string>(""); // id รายการที่จะแก้
/**
* งขอมลเครองราชอสรยาภรณ
*
* และบนทกใน store.fetchData
*/
async function fetchData() {
@ -113,7 +118,6 @@ async function fetchData() {
/**
* นยนการบนทกขอมลเครองราชอสรยาภรณ
*
* dialogStatus.value เป "create" จะเพมขอม าไมจะเปนการแกไขขอม
*/
function onSubmit() {
@ -147,7 +151,6 @@ function onSubmit() {
/**
* popup เพ,แกไข อม
*
* และ กำหนดลำดบชนเครองราช เปนคาวาง สถานะการใชงาน เป false
*/
function closeDialog() {
@ -166,7 +169,6 @@ function onclickDetail(id: string) {
/**
* hook จำทำเมอมการเรยกใช components
*
* ทำการดงขอมลเครองราชอสรยาภรณ
*/
onMounted(async () => {
@ -200,12 +202,11 @@ onMounted(async () => {
<q-input
dense
outlined
clearable
v-model="filterKeyword"
placeholder="ค้นหา"
@clear="filterKeyword = ''"
@keydown.enter.pervent="store.onSearchData(filterKeyword, columns)"
>
<template v-slot:append v-if="filterKeyword === ''">
<template v-slot:append>
<q-icon name="search" />
</template>
</q-input>
@ -230,7 +231,6 @@ onMounted(async () => {
ref="table"
:columns="columns"
:rows="store.row"
:filter="filterKeyword"
row-key="name"
flat
bordered