fix(测试跟踪): 评审用例下一条评审历史没有刷新
--bug=1023458 --user=陈建星 【测试跟踪】功能用例评审,评审完成后点 上一条 / 下一条,会显示之前的评审内容 https://www.tapd.cn/55049933/s/1339794
This commit is contained in:
parent
487de44107
commit
c21e8c5bc1
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -57,6 +57,9 @@ export default {
|
|||
watch: {
|
||||
comments() {
|
||||
this.$emit('emptyChange', this.isCommentEmpty);
|
||||
},
|
||||
caseId() {
|
||||
this.getComments();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue