refactor: use page size component
This commit is contained in:
parent
c2b3fe68f6
commit
0c8e314c8b
5 changed files with 29 additions and 135 deletions
|
|
@ -39,6 +39,7 @@ import {
|
|||
EmployerFormContact,
|
||||
} from './components';
|
||||
import { formatAddress } from 'src/utils/address';
|
||||
import PaginationPageSize from 'src/components/PaginationPageSize.vue';
|
||||
|
||||
const flowStore = useFlowStore();
|
||||
const customerStore = useCustomerStore();
|
||||
|
|
@ -232,7 +233,7 @@ onMounted(async () => {
|
|||
await fetchList();
|
||||
});
|
||||
|
||||
watch([customerId, inputSearch, currentStatus], async () => {
|
||||
watch([customerId, inputSearch, currentStatus, pageSizeBranch], async () => {
|
||||
await fetchList();
|
||||
});
|
||||
watch(
|
||||
|
|
@ -638,8 +639,15 @@ watch(
|
|||
</div>
|
||||
|
||||
<div class="row justify-between items-center q-px-md q-py-sm surface-2">
|
||||
<div class="col"></div>
|
||||
<div class="app-text-muted col text-center">
|
||||
<div class="row col-4 items-center">
|
||||
<div class="app-text-muted" style="width: 80px" v-if="$q.screen.gt.sm">
|
||||
{{ $t('general.recordPerPage') }}
|
||||
</div>
|
||||
|
||||
<div><PaginationPageSize v-model="pageSizeBranch" /></div>
|
||||
</div>
|
||||
|
||||
<div class="col-4 flex justify-center app-text-muted">
|
||||
{{
|
||||
$t('general.recordsPage', {
|
||||
resultcurrentPage: branch?.length,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue