diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index 27b28c6a..83e05931 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -48,6 +48,7 @@ import InfoForm from 'components/02_personnel-management/InfoForm.vue'; import FormPerson from 'components/02_personnel-management/FormPerson.vue'; import FormByType from 'components/02_personnel-management/FormByType.vue'; import FormInformation from 'components/02_personnel-management/FormInformation.vue'; +import PaginationPageSize from 'src/components/PaginationPageSize.vue'; const { locale, t } = useI18n(); const $q = useQuasar(); @@ -730,7 +731,7 @@ watch( }, ); -watch([inputSearch, statusFilter], async () => await fetchUserList()); +watch([inputSearch, statusFilter, pageSize], async () => await fetchUserList()); watch( () => $q.screen.lt.md, @@ -1418,33 +1419,7 @@ watch(
{{ $t('general.recordPerPage') }}
-
- - - - - {{ v }} - - - - -
+
diff --git a/src/pages/03_customer-management/BranchPage.vue b/src/pages/03_customer-management/BranchPage.vue index 6ef7dad0..a2f3656a 100644 --- a/src/pages/03_customer-management/BranchPage.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -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(
-
-
+
+
+ {{ $t('general.recordPerPage') }} +
+ +
+
+ +
{{ $t('general.recordsPage', { resultcurrentPage: branch?.length, diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 75fd2031..9dcf25b9 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -79,6 +79,7 @@ import KebabAction from 'src/components/shared/KebabAction.vue'; import { nextTick } from 'vue'; import FormEmployeeVisa from 'components/03_customer-management/FormEmployeeVisa.vue'; import { group } from 'node:console'; +import PaginationPageSize from 'src/components/PaginationPageSize.vue'; const { t, locale } = useI18n(); const $q = useQuasar(); @@ -210,7 +211,7 @@ const onCreateImageList = ref<{ watch(() => route.name, init); watch( - [currentTab, currentStatus, inputSearch, customerTypeSelected], + [currentTab, currentStatus, inputSearch, customerTypeSelected, pageSize], async ([tabName]) => { if (tabName === 'employer') { currentPageCustomer.value = 1; @@ -1647,34 +1648,8 @@ const emptyCreateDialog = ref(false); > {{ $t('general.recordPerPage') }}
-
- - - - - {{ v }} - - - - -
+ +
@@ -1768,34 +1743,8 @@ const emptyCreateDialog = ref(false); > {{ $t('general.recordPerPage') }}
-
- - - - - {{ v }} - - - - -
+ +
diff --git a/src/pages/04_flow-managment/MainPage.vue b/src/pages/04_flow-managment/MainPage.vue index 0f4b2be6..5bb4711f 100644 --- a/src/pages/04_flow-managment/MainPage.vue +++ b/src/pages/04_flow-managment/MainPage.vue @@ -20,6 +20,7 @@ import PaginationComponent from 'src/components/PaginationComponent.vue'; import FlowDialog from './FlowDialog.vue'; import NoData from 'src/components/NoData.vue'; import KebabAction from 'src/components/shared/KebabAction.vue'; +import PaginationPageSize from 'src/components/PaginationPageSize.vue'; const { t } = useI18n(); const workflowStore = useWorkflowTemplate(); @@ -286,7 +287,7 @@ onMounted(async () => { }); watch(statusFilter, fetchWorkflowList); -watch(() => pageState.inputSearch, fetchWorkflowList); +watch([() => pageState.inputSearch, workflowPageSize], fetchWorkflowList);