diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
index dd0322b507..229e51bc42 100644
--- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue
@@ -974,8 +974,8 @@ export default {
that.newData.steps = JSON.parse(that.newData.steps || "");
that.oldData.tags = JSON.parse(that.oldData.tags || "");
that.oldData.steps = JSON.parse(that.oldData.steps || "");
- that.newData.readOnly = false;
- that.oldData.readOnly = false;
+ that.newData.readOnly = true;
+ that.oldData.readOnly = true;
},
compare(row) {
this.$get('/test/case/get/' + row.id + "/" + this.currentTestCaseInfo.refId, response => {
diff --git a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
index e2c546db5b..bdd136785d 100644
--- a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
+++ b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue
@@ -6,7 +6,7 @@
-
+
@@ -126,6 +126,10 @@ export default {
this.$refs.relationship.open();
} else if (this.tabActiveName === 'attachment') {
this.getFileMetaData();
+ } else if (this.tabActiveName === 'relateTest') {
+ this.$nextTick(() => {
+ this.getRelatedTest();
+ });
}
},
caseId() {
@@ -256,6 +260,9 @@ export default {
});
}
},
+ getRelatedTest() {
+ this.$refs.relateTest.initTable();
+ },
visibleChange(flag) {
if (flag) {
this.getDemandOptions();
diff --git a/frontend/src/business/components/track/case/version/TestCaseVersionDiff.vue b/frontend/src/business/components/track/case/version/TestCaseVersionDiff.vue
index 97281ebf23..c17934b1ba 100644
--- a/frontend/src/business/components/track/case/version/TestCaseVersionDiff.vue
+++ b/frontend/src/business/components/track/case/version/TestCaseVersionDiff.vue
@@ -79,7 +79,7 @@
+ :label-width="oldData.formLabelWidth" :case-id="oldData.id" ref="oldOtherInfo"/>
{{ $t('test_track.review.comment') }}:
@@ -184,7 +184,7 @@
+ :label-width="newData.formLabelWidth" :case-id="newData.id" ref="newOtherInfo"/>
{{ $t('test_track.review.comment') }}:
@@ -428,42 +428,6 @@ export default {
this.dialogFormVisible = false;
}
,
- getOption(param) {
- let formData = new FormData();
- if (this.$refs.otherInfo && this.$refs.otherInfo.uploadList) {
- this.$refs.otherInfo.uploadList.forEach(f => {
- formData.append("file", f);
- });
- }
-
- if (this.$refs.otherInfo && this.$refs.otherInfo.fileList) {
- if (param.isCopy) {
- // 如果是copy,则把文件的ID传到后台进行文件复制
- param.fileIds = this.$refs.otherInfo.fileList.map(f => f.id);
- }
- param.updatedFileList = this.$refs.otherInfo.fileList;
- } else {
- param.fileIds = [];
- param.updatedFileList = [];
- }
-
- let requestJson = JSON.stringify(param, function (key, value) {
- return key === "file" ? undefined : value
- });
-
- formData.append('request', new Blob([requestJson], {
- type: "application/json"
- }));
- return {
- method: 'POST',
- url: this.path,
- data: formData,
- headers: {
- 'Content-Type': undefined
- }
- };
- }
- ,
getMaintainerOptions() {
this.$post('/user/project/member/tester/list', {projectId: getCurrentProjectID()}, response => {
this.maintainerOptions = response.data;