fix: 代码规范
This commit is contained in:
parent
712e46b393
commit
47493b5863
|
@ -1,6 +1,11 @@
|
||||||
import i18n from '../../i18n/i18n'
|
import i18n from '../../i18n/i18n'
|
||||||
import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants";
|
import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants";
|
||||||
|
|
||||||
|
function setDefaultValue(item, value) {
|
||||||
|
item.defaultValue = value;
|
||||||
|
item.hasParse = true; // 多次调用不执行这部分
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 设置默认值,添加自定义校验
|
* 设置默认值,添加自定义校验
|
||||||
* @param data 原表单值
|
* @param data 原表单值
|
||||||
|
@ -74,11 +79,6 @@ export function parseCustomField(data, template, customFieldForm, rules, oldFiel
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDefaultValue(item, value) {
|
|
||||||
item.defaultValue = value;
|
|
||||||
item.hasParse = true; // 多次调用不执行这部分
|
|
||||||
}
|
|
||||||
|
|
||||||
// 将template的属性值设置给customFields
|
// 将template的属性值设置给customFields
|
||||||
export function buildCustomFields(data, param, template) {
|
export function buildCustomFields(data, param, template) {
|
||||||
if (template.customFields) {
|
if (template.customFields) {
|
||||||
|
|
Loading…
Reference in New Issue