Merge branch 'develop' into devTee

This commit is contained in:
STW_TTTY\stwtt 2024-04-26 10:05:24 +07:00
commit b9b89e99e7

View file

@ -134,6 +134,7 @@ const formData = reactive<FormRound>({
}); });
const modalDialog = ref<boolean>(false); const modalDialog = ref<boolean>(false);
const isStatusEdit = ref<boolean>(false); const isStatusEdit = ref<boolean>(false);
const total = ref<number>(0);
/** function fetch ข้อมูลรายการรอบการประเมินผลการปฏิบัติหน้าที่ราชการ*/ /** function fetch ข้อมูลรายการรอบการประเมินผลการปฏิบัติหน้าที่ราชการ*/
function fetchList() { function fetchList() {
@ -146,6 +147,7 @@ function fetchList() {
.then((res) => { .then((res) => {
const data: ResRound[] = res.data.result.data; const data: ResRound[] = res.data.result.data;
totalList.value = Math.ceil(res.data.result.total / formQuery.pageSize); totalList.value = Math.ceil(res.data.result.total / formQuery.pageSize);
total.value = res.data.result.total;
rows.value = data; rows.value = data;
}) })
.catch((err) => { .catch((err) => {
@ -480,6 +482,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"