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

This commit is contained in:
chenjianxing 2021-04-29 11:26:24 +08:00 committed by BugKing
parent 6eec56c1cc
commit 3664291346
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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) {
// ,使