提交 590b158b 编写于 作者: tony001's avatar tony001

调整表单加载草稿逻辑

上级 aacf2a80
...@@ -964,13 +964,15 @@ import schema from 'async-validator'; ...@@ -964,13 +964,15 @@ import schema from 'async-validator';
} }
const data = response.data; const data = response.data;
<#if de??>
if(data.${appde.getCodeName()?lower_case}){
Object.assign(this.context,{${appde.getCodeName()?lower_case}:data.${appde.getCodeName()?lower_case}})
}
</#if>
this.resetDraftFormStates(); this.resetDraftFormStates();
this.onFormLoad(data,'loadDraft'); this.onFormLoad(data,'loadDraft');
<#list ctrl.getPSDEFormItems() as formitem>
<#if formitem.getPSAppDEField?? && formitem.getPSAppDEField()??>
<#if !formitem.isHidden() && formitem.getPSAppDEField().isKeyField()>
this.data.${formitem.getName()} = null;
</#if>
</#if>
</#list>
this.$emit('load', data); this.$emit('load', data);
this.$nextTick(() => { this.$nextTick(() => {
this.formState.next({ type: 'load', data: data }); this.formState.next({ type: 'load', data: data });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册