From b42d9a1399ef8fa0ee0f51258b2eddd74d22a1cb Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Wed, 15 Nov 2023 11:06:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E4=BE=8B=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=AF=8F?= =?UTF-8?q?=E9=A1=B5=E6=98=BE=E7=A4=BA=E6=95=B0=E9=87=8F=EF=BC=8C=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E5=85=B3=E8=81=94=E4=BC=9A=E9=87=8D=E5=A4=8D=E5=85=B3?= =?UTF-8?q?=E8=81=94=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1032462 --user=陈建星 【测试跟踪】github#27277,高级搜索后再添加关联用例,发现有重复 https://www.tapd.cn/55049933/s/1435602 --- .../components/pagination/TablePagination.vue | 18 +++++++++++++++--- .../functional/FunctionalRelevance.vue | 11 ++++++++--- 2 files changed, 23 insertions(+), 6 deletions(-) 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;