refactor: update screen.sm pagination display for various management pages

This commit is contained in:
puriphatt 2025-01-28 18:07:57 +07:00
parent 3331afaaa3
commit 5c5e9fac63
15 changed files with 181 additions and 69 deletions

View file

@ -2482,10 +2482,15 @@ watch(
<div class="col-4 row justify-center app-text-muted">
{{
$t('general.recordsPage', {
resultcurrentPage: productGroup?.length,
total: totalGroup,
})
$q.screen.gt.sm
? $t('general.recordsPage', {
resultcurrentPage: productGroup?.length,
total: totalGroup,
})
: $t('general.ofPage', {
current: productGroup?.length,
total: totalGroup,
})
}}
</div>
@ -3186,13 +3191,21 @@ watch(
<div class="col-4 row justify-center app-text-muted">
{{
$t('general.recordsPage', {
resultcurrentPage:
productAndServiceTab === 'product'
? product?.length
: service?.length,
total: total,
})
$q.screen.gt.sm
? $t('general.recordsPage', {
resultcurrentPage:
productAndServiceTab === 'product'
? product?.length
: service?.length,
total: total,
})
: $t('general.ofPage', {
current:
productAndServiceTab === 'product'
? product?.length
: service?.length,
total: total,
})
}}
</div>
<div class="col-4 row justify-end">