ทะเบียนประวัติ: แก้paging ประวัติแก้ไขข้อมูลส่วนตัว
This commit is contained in:
parent
c8bc52a9fc
commit
9641d85403
1 changed files with 8 additions and 13 deletions
|
|
@ -41,6 +41,11 @@ const id = ref<string>("");
|
||||||
const age = ref<string | null>("");
|
const age = ref<string | null>("");
|
||||||
const formData = reactive<RequestObject>(store.defaultProfile);
|
const formData = reactive<RequestObject>(store.defaultProfile);
|
||||||
|
|
||||||
|
const pagination = ref({
|
||||||
|
page: 1,
|
||||||
|
rowsPerPage: 10,
|
||||||
|
});
|
||||||
|
|
||||||
const dataLabel = {
|
const dataLabel = {
|
||||||
citizenId: "เลขบัตรประจำตัวประชาชน",
|
citizenId: "เลขบัตรประจำตัวประชาชน",
|
||||||
name: "ชื่อ - สกุล",
|
name: "ชื่อ - สกุล",
|
||||||
|
|
@ -812,7 +817,9 @@ onMounted(async () => {
|
||||||
:columns="columnsHistory"
|
:columns="columnsHistory"
|
||||||
:rows="rowsHistory"
|
:rows="rowsHistory"
|
||||||
:paging="true"
|
:paging="true"
|
||||||
:rows-per-page-options="[10, 25, 50, 100]"
|
class="custom-header-table"
|
||||||
|
v-model:pagination="pagination"
|
||||||
|
:rows-per-page-options="[20, 50, 100]"
|
||||||
:visible-columns="visibleColumnsHistory"
|
:visible-columns="visibleColumnsHistory"
|
||||||
:filter="filterHistory"
|
:filter="filterHistory"
|
||||||
>
|
>
|
||||||
|
|
@ -833,18 +840,6 @@ onMounted(async () => {
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:pagination="scope">
|
|
||||||
<q-pagination
|
|
||||||
v-model="currentPage"
|
|
||||||
active-color="primary"
|
|
||||||
color="dark"
|
|
||||||
:max="Number(maxPage)"
|
|
||||||
size="sm"
|
|
||||||
boundary-links
|
|
||||||
direction-links
|
|
||||||
></q-pagination>
|
|
||||||
</template>
|
|
||||||
</d-table>
|
</d-table>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue