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

@ -698,10 +698,15 @@ watch(
<div class="col-4 flex justify-center app-text-muted">
{{
$t('general.recordsPage', {
resultcurrentPage: branch?.length,
total: totalBranch,
})
$q.screen.gt.sm
? $t('general.recordsPage', {
resultcurrentPage: branch?.length,
total: totalBranch,
})
: $t('general.ofPage', {
current: branch?.length,
total: totalBranch,
})
}}
</div>
<div class="col-4 flex justify-end">

View file

@ -1749,10 +1749,17 @@ const emptyCreateDialog = ref(false);
<div class="col-4 flex justify-center app-text-muted">
{{
$t('general.recordsPage', {
resultcurrentPage: listCustomer.length,
total: statsCustomerType.PERS + statsCustomerType.CORP,
})
$q.screen.gt.sm
? $t('general.recordsPage', {
resultcurrentPage: listCustomer.length,
total:
statsCustomerType.PERS + statsCustomerType.CORP,
})
: $t('general.ofPage', {
current: listCustomer.length,
total:
statsCustomerType.PERS + statsCustomerType.CORP,
})
}}
</div>
@ -1844,10 +1851,15 @@ const emptyCreateDialog = ref(false);
<div class="col-4 flex justify-center app-text-muted">
{{
$t('general.recordsPage', {
resultcurrentPage: listEmployee.length,
total: employeeStats,
})
$q.screen.gt.sm
? $t('general.recordsPage', {
resultcurrentPage: listEmployee.length,
total: employeeStats,
})
: $t('general.ofPage', {
current: listEmployee.length,
total: employeeStats,
})
}}
</div>