fix: pageing
This commit is contained in:
parent
33e7877e6e
commit
c8d061e43a
3 changed files with 13 additions and 6 deletions
|
|
@ -36,6 +36,7 @@ const pass = ref<number>(0);
|
|||
const notpass = ref<number>(0);
|
||||
const missed_exam = ref<number>(0);
|
||||
const other = ref<number>(0);
|
||||
const total = ref<number>(0);
|
||||
const totalList = ref<number>(0);
|
||||
|
||||
const importId = ref<string>(route.params.id as string); // Period Import Id
|
||||
|
|
@ -310,8 +311,9 @@ async function fetchData() {
|
|||
notpass.value = header.notpass;
|
||||
missed_exam.value = header.missed_exam;
|
||||
other.value = header.other;
|
||||
total.value = res.data.result.total;
|
||||
totalList.value = Math.ceil(
|
||||
header.count / initialPagination.value.rowsPerPage
|
||||
res.data.result.total / initialPagination.value.rowsPerPage
|
||||
);
|
||||
const data = res.data.result.data;
|
||||
let result: RecruitDetailResponse[] = [];
|
||||
|
|
@ -444,6 +446,7 @@ onMounted(async () => {
|
|||
:pagination="initialPagination"
|
||||
:visible-columns="visibleColumns"
|
||||
v-model:inputfilter="filter"
|
||||
v-model:total="total"
|
||||
v-model:inputvisible="visibleColumns"
|
||||
:nornmalData="false"
|
||||
:conclude="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue