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 TestCaseAttachment from "@/business/case/components/TestCaseAttachment";
|
||||||
import {
|
import {
|
||||||
buildTestCaseOldFields,
|
buildTestCaseOldFields,
|
||||||
getTemplate,
|
|
||||||
parseCustomField,
|
parseCustomField,
|
||||||
} from "metersphere-frontend/src/utils/custom_field";
|
} from "metersphere-frontend/src/utils/custom_field";
|
||||||
import TestCaseEditOtherInfo from "@/business/case/components/TestCaseEditOtherInfo";
|
import TestCaseEditOtherInfo from "@/business/case/components/TestCaseEditOtherInfo";
|
||||||
|
@ -300,6 +299,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.index++;
|
this.index++;
|
||||||
|
this.caseId = this.testCases[this.index].caseId;
|
||||||
this.getTestCase(this.testCases[this.index].id);
|
this.getTestCase(this.testCases[this.index].id);
|
||||||
},
|
},
|
||||||
isLastData() {
|
isLastData() {
|
||||||
|
@ -317,6 +317,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.index--;
|
this.index--;
|
||||||
|
this.caseId = this.testCases[this.index].caseId;
|
||||||
this.getTestCase(this.testCases[this.index].id);
|
this.getTestCase(this.testCases[this.index].id);
|
||||||
},
|
},
|
||||||
getTestCase(id) {
|
getTestCase(id) {
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<div class="bar-item click-item"
|
<div class="bar-item click-item"
|
||||||
@click="handleNext">
|
@click="handleNext">
|
||||||
<span>
|
<span>
|
||||||
{{ $t('commons.next_page') }}
|
{{ $t("case.previous_public_case") }}
|
||||||
</span>
|
</span>
|
||||||
<i class="el-icon-arrow-right"/>
|
<i class="el-icon-arrow-right"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
@click="handlePre">
|
@click="handlePre">
|
||||||
<i class="el-icon-arrow-left"/>
|
<i class="el-icon-arrow-left"/>
|
||||||
<span>
|
<span>
|
||||||
{{ $t('commons.pre_page') }}
|
{{ $t('case.next_public_case') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,9 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
comments() {
|
comments() {
|
||||||
this.$emit('emptyChange', this.isCommentEmpty);
|
this.$emit('emptyChange', this.isCommentEmpty);
|
||||||
|
},
|
||||||
|
caseId() {
|
||||||
|
this.getComments();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue