From 47493b58631d7f0b0094365401d4041a61685d1f Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 30 Apr 2021 11:50:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/common/js/custom_field.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/common/js/custom_field.js b/frontend/src/common/js/custom_field.js index 6f0e877df3..eb86e699c0 100644 --- a/frontend/src/common/js/custom_field.js +++ b/frontend/src/common/js/custom_field.js @@ -1,6 +1,11 @@ import i18n from '../../i18n/i18n' import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants"; +function setDefaultValue(item, value) { + item.defaultValue = value; + item.hasParse = true; // 多次调用不执行这部分 +} + /** * 设置默认值,添加自定义校验 * @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 export function buildCustomFields(data, param, template) { if (template.customFields) {