fix(测试跟踪): 评审用例下一条评审历史没有刷新

--bug=1023458 --user=陈建星 【测试跟踪】功能用例评审,评审完成后点 上一条 / 下一条,会显示之前的评审内容 https://www.tapd.cn/55049933/s/1339794
This commit is contained in:
chenjianxing 2023-02-21 16:22:58 +08:00 committed by jianxing
parent 358638b8a4
commit bbc3db1921
3 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -34,7 +34,7 @@
<div class="bar-item click-item"
@click="handleNext">
<span>
{{ $t('commons.next_page') }}
{{ $t("case.previous_public_case") }}
</span>
<i class="el-icon-arrow-right"/>
</div>
@ -43,7 +43,7 @@
@click="handlePre">
<i class="el-icon-arrow-left"/>
<span>
{{ $t('commons.pre_page') }}
{{ $t('case.next_public_case') }}
</span>
</div>

View File

@ -57,6 +57,9 @@ export default {
watch: {
comments() {
this.$emit('emptyChange', this.isCommentEmpty);
},
caseId() {
this.getComments();
}
},
methods: {