提交 36642913 编写于 作者: C chenjianxing 提交者: BugKing

fix: 用例评审自定义字段有多选框时报错

上级 6eec56c1
......@@ -63,6 +63,7 @@
</el-row>
<el-form ref="customFieldForm"
v-if="isCustomFiledActive"
class="case-form">
<el-row>
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
......@@ -181,6 +182,7 @@ export default {
comments: [],
testCaseTemplate: {},
formLabelWidth: "100px",
isCustomFiledActive: false
};
},
props: {
......@@ -352,6 +354,7 @@ export default {
}
this.testCase = item;
parseCustomField(this.testCase, this.testCaseTemplate, null, null, buildTestCaseOldFields(this.testCase));
this.isCustomFiledActive = true;
if (!this.testCase.actualResult) {
// 如果没值,使用模板的默认值
this.testCase.actualResult = this.testCaseTemplate.actualResult;
......
......@@ -78,6 +78,7 @@
</el-row>
<el-form ref="customFieldForm"
v-if="isCustomFiledActive"
class="case-form">
<el-row>
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
......@@ -187,7 +188,8 @@ export default {
testCaseTemplate: {},
hasTapdId: false,
hasZentaoId: false,
formLabelWidth: '100px'
formLabelWidth: '100px',
isCustomFiledActive: false
};
},
props: {
......@@ -302,6 +304,7 @@ export default {
item.stepModel = 'STEP';
}
parseCustomField(item, this.testCaseTemplate, null, null, buildTestCaseOldFields(item));
this.isCustomFiledActive = true;
this.testCase = item;
if (!this.testCase.actualResult) {
// 如果没值,使用模板的默认值
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册