แก้ ทะเบียนประวัติใหม่(ข้อมูลครอบครัว) /เพิ่ม เเสดงทั้งหมด ทะเบียนประวัติเก่า
This commit is contained in:
parent
eb7f758dab
commit
b43f4a6b77
6 changed files with 184 additions and 110 deletions
|
|
@ -85,6 +85,7 @@
|
|||
:onTab="changeTab"
|
||||
:rowsPerPage="rowsPerPage"
|
||||
:page="page"
|
||||
:total="total"
|
||||
:maxPage="maxPage"
|
||||
@update:pagination="updatePagingProp"
|
||||
:rows-per-page-options="[50, 100, 200, 500]"
|
||||
|
|
@ -176,6 +177,7 @@ const { changeTreeRegister, selectedRegister, expandedRegister } = dataStore;
|
|||
const maxPage = ref<number>(1);
|
||||
const rowsPerPage = ref<number>(50);
|
||||
const page = ref<number>(1);
|
||||
const total = ref<number>(0)
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const { date2Thai, messageError, typeRetire, showLoader, hideLoader } = mixin;
|
||||
|
|
@ -1375,6 +1377,7 @@ const doSearch = async () => {
|
|||
.then((res) => {
|
||||
let data = res.data.result.data;
|
||||
maxPage.value = Math.ceil(res.data.result.totalRows / rowsPerPage.value);
|
||||
total.value = res.data.result.totalRows
|
||||
rows.value = [];
|
||||
data.map((e: ResponseObject) => {
|
||||
rows.value.push({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue