Skip to content

Commit 972670d

Browse files
committed
fix: reset pagination page on per-page change
1 parent e7ed6cb commit 972670d

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

resources/js/processes-catalogue/components/home/CustomHomeTableSection/CustomHomeTableSection.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ const hookData = async () => {
112112
113113
const onPerPage = async (perPage) => {
114114
dataPagination.value.perPage = perPage;
115+
dataPagination.value.page = 1;
115116
await hookData();
116117
};
117118

resources/jscomposition/cases/casesDetail/components/CompletedForms.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const onGo = async (page) => {
123123
124124
const onPerPage = async (perPage) => {
125125
dataPagination.value.perPage = perPage;
126+
dataPagination.value.page = 1;
126127
127128
await hookGetData();
128129
};

resources/jscomposition/cases/casesDetail/components/RequestTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const onGo = async (page) => {
9696
9797
const onPerPage = async (perPage) => {
9898
dataPagination.value.perPage = perPage;
99+
dataPagination.value.page = 1;
99100
100101
await hookGetData();
101102
};

resources/jscomposition/cases/casesDetail/components/TaskTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const onGo = async (page) => {
9898
9999
const onPerPage = async (perPage) => {
100100
dataPagination.value.perPage = perPage;
101+
dataPagination.value.page = 1;
101102
102103
await hookGetData();
103104
};

resources/jscomposition/cases/casesMain/CasesDataSection.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ const onGo = async (page) => {
145145
146146
const onPerPage = async (perPage) => {
147147
dataPagination.value.perPage = perPage;
148+
dataPagination.value.page = 1;
148149
149150
await hookGetData();
150151
};

0 commit comments

Comments
 (0)