From 9d866434cde3dd91b4a6e9bfa5406693311e2766 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Sat, 7 May 2022 15:19:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E7=94=A8=E4=BE=8B=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013024 --user=李玉号 【测试跟踪】github#13324 用例评审页面,一直点向下图标 或者 下一条用例图标,从第9条用例,到第10条,第11条,中间会出现用例名称没有被显示的问题 https://www.tapd.cn/55049933/s/1154098 Closes #13324 --- .../track/review/view/components/TestReviewTestCaseEdit.vue | 2 ++ .../track/review/view/components/TestReviewTestCaseList.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue index 601f80fb88..dc548c8cf7 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue @@ -370,6 +370,7 @@ export default { if (this.index === this.testCases.length - 1 && this.pageNum === this.pageTotal) { return; } else if (this.index === this.testCases.length - 1) { + // this.index = 0; this.$emit('nextPage'); return; } @@ -380,6 +381,7 @@ export default { if (this.index === 0 && this.pageNum === 1) { return; } else if (this.index === 0) { + // this.index = this.pageSize - 1; this.$emit('prePage'); return; } diff --git a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseList.vue b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseList.vue index b6ffe33918..a08a93ed22 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseList.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseList.vue @@ -383,10 +383,15 @@ export default { this.result = getTestReviewTestCase(this.currentPage, this.pageSize, this.condition, (data) => { this.total = data.itemCount; this.tableData = data.listObject; + this.getPreData(); + if (callback && typeof callback === "function") { + callback(); + } setTimeout(() => { this.$refs.table.reloadTable() }, 200); }); + this.getNexPageData(); } }, getNexPageData() {