fix(测试跟踪): 功能用例编辑时表单不显示版本
This commit is contained in:
parent
5498a17695
commit
e4971fc98c
|
@ -464,6 +464,7 @@ export default {
|
|||
stepModel: "STEP",
|
||||
customNum: "",
|
||||
followPeople: "",
|
||||
versionId: ""
|
||||
},
|
||||
maintainerOptions: [],
|
||||
workspaceId: "",
|
||||
|
@ -1000,6 +1001,10 @@ export default {
|
|||
this.$nextTick(() => {
|
||||
this.showInputTag = true;
|
||||
});
|
||||
|
||||
if (this.isCopy) {
|
||||
this.form.id = null;
|
||||
}
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
|
@ -1282,6 +1287,7 @@ export default {
|
|||
},
|
||||
];
|
||||
this.form.customNum = "";
|
||||
this.form.versionId = "";
|
||||
this.form.tags = [];
|
||||
},
|
||||
addListener() {
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
/>
|
||||
</el-form>
|
||||
<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="name title-wrap">{{ $t("commons.version") }}</div>
|
||||
<div class="required required-item"></div>
|
||||
|
@ -379,7 +379,7 @@ export default {
|
|||
{
|
||||
required: true,
|
||||
message: this.$t("case.version_id_cannot_be_empty"),
|
||||
trigger: "change",
|
||||
trigger: "blur",
|
||||
},
|
||||
],
|
||||
customNum: [
|
||||
|
|
Loading…
Reference in New Issue