Merge branch 'develop' into devTee
This commit is contained in:
commit
b9b89e99e7
1 changed files with 3 additions and 0 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue