fix: 用例评审自定义字段有多选框时报错
This commit is contained in:
parent
6eec56c1cc
commit
3664291346
|
@ -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) {
|
||||
// 如果没值,使用模板的默认值
|
||||
|
|
Loading…
Reference in New Issue