diff --git a/framework/sdk-parent/frontend/src/components/pagination/TablePagination.vue b/framework/sdk-parent/frontend/src/components/pagination/TablePagination.vue index 1703b5abec..9a73913712 100644 --- a/framework/sdk-parent/frontend/src/components/pagination/TablePagination.vue +++ b/framework/sdk-parent/frontend/src/components/pagination/TablePagination.vue @@ -39,16 +39,28 @@ export default { type: Number, default: 0 }, - change: Function + change: Function, + changeSize: Function, + changeCurrent: Function }, methods: { handleSizeChange: function (size) { this.$emit('update:pageSize', size) - this.change('size'); + if (this.change) { + this.change(); + } + if (this.changeSize) { + this.changeSize(); + } }, handleCurrentChange(current) { this.$emit('update:currentPage', current) - this.change('current'); + if (this.change) { + this.change(); + } + if (this.changeCurrent) { + this.changeCurrent(); + } } } } diff --git a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue index b149d9b8aa..2f5a6c0a52 100644 --- a/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/functional/FunctionalRelevance.vue @@ -109,7 +109,9 @@ - @@ -285,8 +287,11 @@ export default { this.getTableData(); } }, - pageChange(type) { - this.getTestCases(type === 'current' ? "page" : null) + pageSizeChange() { + this.getTestCases() + }, + currentPageChange() { + this.getTestCases("page") }, saveCaseRelevance(item) { this.isSaving = true;