แก้ฟิลเตอร์

This commit is contained in:
setthawutttty 2024-12-10 11:44:02 +07:00
parent 8a609fa120
commit 6ea0bc8fb6
9 changed files with 134 additions and 54 deletions

View file

@ -120,6 +120,7 @@ const page = ref<number>(1); //หน้า
const rowsPerPage = ref<number>(10); //
const maxPage = ref<number>(1); //
const listMeet = ref<Meetings[]>([]); //
const listMeetData = ref<Meetings[]>([]); //
/**
* งกเป popup เพมการประช
@ -178,7 +179,7 @@ async function getList() {
.get(config.API.meeting() + `/admin`)
.then((res) => {
const data = res.data.result;
listMeet.value = data.map((item: Meetings) => ({
const listData = data.map((item: Meetings) => ({
id: item.id,
createdAt: item.createdAt,
createdUserId: item.createdUserId,
@ -196,6 +197,8 @@ async function getList() {
result: item.result,
timePeriod: item.duration,
}));
listMeet.value = listData;
listMeetData.value = listData;
})
.catch((e) => {
messageError($q, e);
@ -286,8 +289,9 @@ watch(
<DialogMeet
v-model:Modal="modalAdd"
:clickClose="onClickClose"
:rows2="listMeet"
v-model:filterKeyword2="filter"
v-model:filterKeyword="filter"
v-model:rows="listMeet"
v-model:rowsData="listMeetData"
:rowsPerPage="rowsPerPage"
:page="page"
:maxPage="maxPage"