แก้ฟิลเตอร์
This commit is contained in:
parent
8a609fa120
commit
6ea0bc8fb6
9 changed files with 134 additions and 54 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue