รายการ ทั้งหมด
This commit is contained in:
parent
bebdfbfce5
commit
efb095b37a
4 changed files with 8 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ watch([() => currentPage.value, () => pagination.value.rowsPerPage], () => {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
|
ทั้งหมด {{ store.row.length }} รายการ
|
||||||
<q-pagination
|
<q-pagination
|
||||||
v-model="currentPage"
|
v-model="currentPage"
|
||||||
active-color="primary"
|
active-color="primary"
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ import config from "@/app.config";
|
||||||
import type { FormType } from "@/modules/07_appealComplain/interface/response/mainType";
|
import type { FormType } from "@/modules/07_appealComplain/interface/response/mainType";
|
||||||
import type { DataOption } from "@/modules/07_appealComplain/interface/index/main";
|
import type { DataOption } from "@/modules/07_appealComplain/interface/index/main";
|
||||||
|
|
||||||
|
const total = ref<number>(0)
|
||||||
const currentPage = ref<number>(1);
|
const currentPage = ref<number>(1);
|
||||||
const maxPage = ref<number>(1);
|
const maxPage = ref<number>(1);
|
||||||
const page = ref<number>(1);
|
const page = ref<number>(1);
|
||||||
|
|
@ -174,6 +175,7 @@ const getData = async () => {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
total.value = res.data.result.total
|
||||||
maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value);
|
maxPage.value = Math.ceil(res.data.result.total / rowsPerPage.value);
|
||||||
let data = res.data.result.data;
|
let data = res.data.result.data;
|
||||||
dataStore.fetchAppealComplain(data);
|
dataStore.fetchAppealComplain(data);
|
||||||
|
|
@ -390,6 +392,7 @@ onMounted(async () => {
|
||||||
:rows-per-page-options="[10, 25, 50, 100]"
|
:rows-per-page-options="[10, 25, 50, 100]"
|
||||||
>
|
>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
|
ทั้งหมด {{ total }} รายการ
|
||||||
<q-pagination
|
<q-pagination
|
||||||
v-model="currentPage"
|
v-model="currentPage"
|
||||||
active-color="primary"
|
active-color="primary"
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ const formQuery = reactive({
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
});
|
});
|
||||||
|
const total = ref<number>(0);
|
||||||
const totalList = ref<number>(1);
|
const totalList = ref<number>(1);
|
||||||
const isRoundClose = ref<boolean>(false);
|
const isRoundClose = ref<boolean>(false);
|
||||||
|
|
||||||
|
|
@ -150,6 +151,7 @@ function fetchList() {
|
||||||
)
|
)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const data = res.data.result;
|
const data = res.data.result;
|
||||||
|
total.value = data.total;
|
||||||
totalList.value = Math.ceil(data.total / formQuery.pageSize);
|
totalList.value = Math.ceil(data.total / formQuery.pageSize);
|
||||||
rows.value = data.data;
|
rows.value = data.data;
|
||||||
})
|
})
|
||||||
|
|
@ -460,6 +462,7 @@ onMounted(() => {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
|
ทั้งหมด {{ total }} รายการ
|
||||||
<q-pagination
|
<q-pagination
|
||||||
v-model="formQuery.page"
|
v-model="formQuery.page"
|
||||||
active-color="primary"
|
active-color="primary"
|
||||||
|
|
|
||||||
|
|
@ -327,6 +327,7 @@ onMounted(async () => {
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:pagination="scope">
|
<template v-slot:pagination="scope">
|
||||||
|
ทั้งหมด {{ rows.length }} รายการ
|
||||||
<q-pagination
|
<q-pagination
|
||||||
v-model="formQuery.page"
|
v-model="formQuery.page"
|
||||||
active-color="primary"
|
active-color="primary"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue