fix: ปรับ layout แบ่งหน้า

This commit is contained in:
Net 2024-07-01 13:01:57 +07:00
parent b9b2e53109
commit 16b3685e09

View file

@ -30,6 +30,7 @@ import DrawerInfo from 'components/DrawerInfo.vue';
import InfoForm from 'components/02_personnel-management/InfoForm.vue';
import NoData from 'components/NoData.vue';
import ProfileUpload from 'components/ProfileUpload.vue';
import PaginationComponent from 'src/components/PaginationComponent.vue';
const { locale } = useI18n();
@ -712,13 +713,19 @@ watch(inputSearch, async () => await fetchUserList());
>
<NoData :not-found="!!inputSearch" />
</div>
<div class="row flex-center q-pt-md" v-if="currentMaxPage > 0">
<q-pagination
v-model="currentPage"
:max="currentMaxPage"
direction-links
active-color="primary"
gutter="sm"
<div class="row justify-between q-pt-md" v-if="currentMaxPage > 0">
<div class="app-text-muted">
{{
$t('recordsPage', {
resultcurrentPage: userData?.result.length,
total: userData?.total,
})
}}
</div>
<PaginationComponent
v-model:current-page="currentPage"
v-model:max-page="currentMaxPage"
:fetch-data="async () => await fetchUserList()"
/>
</div>
</AppBox>