From bbc3db19211b3c4232de79903955e9cacb79821c Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 21 Feb 2023 16:22:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E7=94=A8=E4=BE=8B=E4=B8=8B=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E5=8E=86=E5=8F=B2=E6=B2=A1=E6=9C=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023458 --user=陈建星 【测试跟踪】功能用例评审,评审完成后点 上一条 / 下一条,会显示之前的评审内容 https://www.tapd.cn/55049933/s/1339794 --- .../review/view/components/TestReviewTestCaseEdit.vue | 3 ++- .../view/components/TestReviewTestCaseEditOperationBar.vue | 4 ++-- .../review/view/components/commnet/CommentHistory.vue | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue index 3f0f6a0702..21ea490e13 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue @@ -113,7 +113,6 @@ import ReviewComment from "@/business/review/commom/ReviewComment"; import TestCaseAttachment from "@/business/case/components/TestCaseAttachment"; import { buildTestCaseOldFields, - getTemplate, parseCustomField, } from "metersphere-frontend/src/utils/custom_field"; import TestCaseEditOtherInfo from "@/business/case/components/TestCaseEditOtherInfo"; @@ -300,6 +299,7 @@ export default { return; } this.index++; + this.caseId = this.testCases[this.index].caseId; this.getTestCase(this.testCases[this.index].id); }, isLastData() { @@ -317,6 +317,7 @@ export default { return; } this.index--; + this.caseId = this.testCases[this.index].caseId; this.getTestCase(this.testCases[this.index].id); }, getTestCase(id) { diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditOperationBar.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditOperationBar.vue index ab15ad61ee..7b4517ecce 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditOperationBar.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditOperationBar.vue @@ -34,7 +34,7 @@
- {{ $t('commons.next_page') }} + {{ $t("case.previous_public_case") }}
@@ -43,7 +43,7 @@ @click="handlePre"> - {{ $t('commons.pre_page') }} + {{ $t('case.next_public_case') }} diff --git a/test-track/frontend/src/business/review/view/components/commnet/CommentHistory.vue b/test-track/frontend/src/business/review/view/components/commnet/CommentHistory.vue index 63878c8833..42c365c87a 100644 --- a/test-track/frontend/src/business/review/view/components/commnet/CommentHistory.vue +++ b/test-track/frontend/src/business/review/view/components/commnet/CommentHistory.vue @@ -57,6 +57,9 @@ export default { watch: { comments() { this.$emit('emptyChange', this.isCommentEmpty); + }, + caseId() { + this.getComments(); } }, methods: {