fix(测试跟踪): 用例评审切换上一条下一条,评论显示有误
This commit is contained in:
parent
8ce127cfc5
commit
30237959ef
|
@ -252,6 +252,9 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.comments = [];
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateRemark(text) {
|
updateRemark(text) {
|
||||||
this.form.remark = text;
|
this.form.remark = text;
|
||||||
|
|
|
@ -487,6 +487,7 @@ export default {
|
||||||
resetPlanCaseSystemField(this.testCaseTemplate.customFields, this.testCase);
|
resetPlanCaseSystemField(this.testCaseTemplate.customFields, this.testCase);
|
||||||
},
|
},
|
||||||
openTestCaseEdit(testCase, tableData) {
|
openTestCaseEdit(testCase, tableData) {
|
||||||
|
this.reloadOtherInfo();
|
||||||
checkProjectPermission(testCase.projectId).then((r) => {
|
checkProjectPermission(testCase.projectId).then((r) => {
|
||||||
this.hasProjectPermission = r.data;
|
this.hasProjectPermission = r.data;
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,10 +60,12 @@
|
||||||
v-if="testCase.stepModel === 'STEP'" :form="testCase"/>
|
v-if="testCase.stepModel === 'STEP'" :form="testCase"/>
|
||||||
|
|
||||||
<el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth">
|
<el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth">
|
||||||
<test-case-edit-other-info @openTest="openTest" :read-only="true"
|
<test-case-edit-other-info
|
||||||
@syncRelationGraphOpen="syncRelationGraphOpen"
|
v-if="otherInfoActive"
|
||||||
:project-id="projectId" :form="testCase" :case-id="testCase.caseId"
|
@openTest="openTest" :read-only="true"
|
||||||
ref="otherInfo"/>
|
@syncRelationGraphOpen="syncRelationGraphOpen"
|
||||||
|
:project-id="projectId" :form="testCase" :case-id="testCase.caseId"
|
||||||
|
ref="otherInfo"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
|
@ -169,6 +171,7 @@ export default {
|
||||||
isCommentEmpty: true,
|
isCommentEmpty: true,
|
||||||
caseId: null,
|
caseId: null,
|
||||||
reviewId: null,
|
reviewId: null,
|
||||||
|
otherInfoActive: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -298,6 +301,7 @@ export default {
|
||||||
this.caseId = this.testCases[this.index].caseId;
|
this.caseId = this.testCases[this.index].caseId;
|
||||||
this.getTestCase(this.testCases[this.index].id);
|
this.getTestCase(this.testCases[this.index].id);
|
||||||
this.$refs.otherInfo.getFileMetaData(this.caseId);
|
this.$refs.otherInfo.getFileMetaData(this.caseId);
|
||||||
|
this.reloadOtherInfo();
|
||||||
},
|
},
|
||||||
isLastData() {
|
isLastData() {
|
||||||
return (
|
return (
|
||||||
|
@ -317,6 +321,13 @@ export default {
|
||||||
this.caseId = this.testCases[this.index].caseId;
|
this.caseId = this.testCases[this.index].caseId;
|
||||||
this.getTestCase(this.testCases[this.index].id);
|
this.getTestCase(this.testCases[this.index].id);
|
||||||
this.$refs.otherInfo.getFileMetaData(this.caseId);
|
this.$refs.otherInfo.getFileMetaData(this.caseId);
|
||||||
|
this.reloadOtherInfo();
|
||||||
|
},
|
||||||
|
reloadOtherInfo() {
|
||||||
|
this.otherInfoActive = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.otherInfoActive = true;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getTestCase(id) {
|
getTestCase(id) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
@ -370,6 +381,7 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
openTestCaseEdit(testCase, tableData) {
|
openTestCaseEdit(testCase, tableData) {
|
||||||
|
this.reloadOtherInfo();
|
||||||
if (this.$refs.comment) {
|
if (this.$refs.comment) {
|
||||||
this.$refs.comment.clearComments();
|
this.$refs.comment.clearComments();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue