fix: 用例评审自定义字段有多选框时报错
This commit is contained in:
parent
6eec56c1cc
commit
3664291346
|
@ -63,6 +63,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form ref="customFieldForm"
|
<el-form ref="customFieldForm"
|
||||||
|
v-if="isCustomFiledActive"
|
||||||
class="case-form">
|
class="case-form">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
|
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
|
||||||
|
@ -181,6 +182,7 @@ export default {
|
||||||
comments: [],
|
comments: [],
|
||||||
testCaseTemplate: {},
|
testCaseTemplate: {},
|
||||||
formLabelWidth: "100px",
|
formLabelWidth: "100px",
|
||||||
|
isCustomFiledActive: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -352,6 +354,7 @@ export default {
|
||||||
}
|
}
|
||||||
this.testCase = item;
|
this.testCase = item;
|
||||||
parseCustomField(this.testCase, this.testCaseTemplate, null, null, buildTestCaseOldFields(this.testCase));
|
parseCustomField(this.testCase, this.testCaseTemplate, null, null, buildTestCaseOldFields(this.testCase));
|
||||||
|
this.isCustomFiledActive = true;
|
||||||
if (!this.testCase.actualResult) {
|
if (!this.testCase.actualResult) {
|
||||||
// 如果没值,使用模板的默认值
|
// 如果没值,使用模板的默认值
|
||||||
this.testCase.actualResult = this.testCaseTemplate.actualResult;
|
this.testCase.actualResult = this.testCaseTemplate.actualResult;
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-form ref="customFieldForm"
|
<el-form ref="customFieldForm"
|
||||||
|
v-if="isCustomFiledActive"
|
||||||
class="case-form">
|
class="case-form">
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
|
<el-col :span="7" v-for="(item, index) in testCaseTemplate.customFields" :key="index">
|
||||||
|
@ -187,7 +188,8 @@ export default {
|
||||||
testCaseTemplate: {},
|
testCaseTemplate: {},
|
||||||
hasTapdId: false,
|
hasTapdId: false,
|
||||||
hasZentaoId: false,
|
hasZentaoId: false,
|
||||||
formLabelWidth: '100px'
|
formLabelWidth: '100px',
|
||||||
|
isCustomFiledActive: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -302,6 +304,7 @@ export default {
|
||||||
item.stepModel = 'STEP';
|
item.stepModel = 'STEP';
|
||||||
}
|
}
|
||||||
parseCustomField(item, this.testCaseTemplate, null, null, buildTestCaseOldFields(item));
|
parseCustomField(item, this.testCaseTemplate, null, null, buildTestCaseOldFields(item));
|
||||||
|
this.isCustomFiledActive = true;
|
||||||
this.testCase = item;
|
this.testCase = item;
|
||||||
if (!this.testCase.actualResult) {
|
if (!this.testCase.actualResult) {
|
||||||
// 如果没值,使用模板的默认值
|
// 如果没值,使用模板的默认值
|
||||||
|
|
Loading…
Reference in New Issue