fix: --bug=1006896 --user=陈建星 【github#6406】用例等级没有展示用户定义模板的值 https://www.tapd.cn/55049933/s/1051937
This commit is contained in:
parent
fbe43422fd
commit
861cb5e80b
|
@ -383,7 +383,7 @@
|
|||
}
|
||||
if (this.type === 'add') {
|
||||
//设置自定义熟悉默认值
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules, buildTestCaseOldFields(this.form));
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules);
|
||||
this.form.name = this.testCaseTemplate.caseName;
|
||||
this.form.stepDescription = this.testCaseTemplate.stepDescription;
|
||||
this.form.expectedResult = this.testCaseTemplate.expectedResult;
|
||||
|
@ -504,7 +504,7 @@
|
|||
this.form.maintainer = user.id;
|
||||
this.form.tags = [];
|
||||
this.getSelectOptions();
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules, buildTestCaseOldFields(this.form));
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules);
|
||||
this.reload();
|
||||
}
|
||||
},
|
||||
|
@ -580,7 +580,7 @@
|
|||
}
|
||||
this.form.module = testCase.nodeId;
|
||||
//设置自定义熟悉默认值
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules, buildTestCaseOldFields(this.form));
|
||||
parseCustomField(this.form, this.testCaseTemplate, this.customFieldForm, this.customFieldRules, testCase ? buildTestCaseOldFields(this.form) : null);
|
||||
this.setDefaultValue();
|
||||
// 重新渲染,显示自定义字段的必填校验
|
||||
this.reloadForm();
|
||||
|
|
|
@ -72,7 +72,7 @@ import CustomFieldFormList from "@/business/components/settings/workspace/templa
|
|||
import CustomFieldRelateList from "@/business/components/settings/workspace/template/CustomFieldRelateList";
|
||||
import FormRichTextItem from "@/business/components/track/case/components/FormRichTextItem";
|
||||
import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants";
|
||||
import {buildCustomFields, getTemplate, parseCustomField} from "@/common/js/custom_field";
|
||||
import {buildCustomFields, parseCustomField} from "@/common/js/custom_field";
|
||||
import CustomFiledComponent from "@/business/components/settings/workspace/template/CustomFiledComponent";
|
||||
import TestCaseIssueList from "@/business/components/track/issue/TestCaseIssueList";
|
||||
import IssueEditDetail from "@/business/components/track/issue/IssueEditDetail";
|
||||
|
@ -201,7 +201,7 @@ export default {
|
|||
this.form.creator = getCurrentUserId();
|
||||
}
|
||||
}
|
||||
parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules, null);
|
||||
parseCustomField(this.form, this.issueTemplate, this.customFieldForm, this.customFieldRules);
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.testCaseIssueList) {
|
||||
this.$refs.testCaseIssueList.initTableData();
|
||||
|
|
Loading…
Reference in New Issue