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