fix(测试跟踪): 功能用例编辑时表单不显示版本

This commit is contained in:
chenjianxing 2023-02-18 20:13:46 +08:00 committed by jianxing
parent 5498a17695
commit e4971fc98c
2 changed files with 8 additions and 2 deletions

View File

@ -464,6 +464,7 @@ export default {
stepModel: "STEP", stepModel: "STEP",
customNum: "", customNum: "",
followPeople: "", followPeople: "",
versionId: ""
}, },
maintainerOptions: [], maintainerOptions: [],
workspaceId: "", workspaceId: "",
@ -1000,6 +1001,10 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.showInputTag = true; this.showInputTag = true;
}); });
if (this.isCopy) {
this.form.id = null;
}
this.loading = false; this.loading = false;
}); });
}, },
@ -1282,6 +1287,7 @@ export default {
}, },
]; ];
this.form.customNum = ""; this.form.customNum = "";
this.form.versionId = "";
this.form.tags = []; this.form.tags = [];
}, },
addListener() { addListener() {

View File

@ -112,7 +112,7 @@
/> />
</el-form> </el-form>
<el-form ref="baseCaseFrom" :rules="rules" :model="form" class="case-padding"> <el-form ref="baseCaseFrom" :rules="rules" :model="form" class="case-padding">
<div class="version-row case-wrap" v-if="versionEnable"> <div class="version-row case-wrap" v-if="versionEnable && !this.form.id">
<div class="case-title-wrap"> <div class="case-title-wrap">
<div class="name title-wrap">{{ $t("commons.version") }}</div> <div class="name title-wrap">{{ $t("commons.version") }}</div>
<div class="required required-item"></div> <div class="required required-item"></div>
@ -379,7 +379,7 @@ export default {
{ {
required: true, required: true,
message: this.$t("case.version_id_cannot_be_empty"), message: this.$t("case.version_id_cannot_be_empty"),
trigger: "change", trigger: "blur",
}, },
], ],
customNum: [ customNum: [