提交 1dc0eac5 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc

上级 29b89d98
......@@ -2,7 +2,7 @@
${item.render.code}
<#else>
<#if !item.isHidden()>
<app-form-item :helpInfo="detailsModel.${item.name}.error" :required="<#if item.isAllowEmpty()>false<#else>true</#if>" :validateStatus="detailsModel.${item.name}.validateStatus" :itemRules="rules.${item.name}" :labelName="$t('${view.name?lower_case}.${ctrl.getCodeName()?lower_case}.${item.getName()}')" :labelwidth="'${item.getLabelWidth()}px'" :labelPosition="'${item.getLabelPos()}'" :isShowCaption="${item.isShowCaption()?c}" :formItemStyle="{<#if item.getItemWidth()??&&item.getItemWidth() != 0>width:'${item.getItemWidth()}px',</#if><#if item.getItemHeight()?? && item.getItemHeight() != 0>height:'${item.getItemHeight()}px'</#if>}" :isEmptyCaption="${item.isEmptyCaption()?c}" :formItemContentStyle="{<#if item.getEditorHeight()?? && item.getEditorHeight() != 0>height:'${item.getEditorHeight()}px',</#if><#if item.getEditorWidth()?? && item.getEditorWidth() != 0>width:'${item.getEditorWidth()}px'</#if>}" class="app-form-item-${item.getName()} <#if item.getPSSysCss?? && item.getPSSysCss()??>${item.getPSSysCss().getCssName()}</#if>">
<app-form-item :helpInfo="detailsModel.${item.name}.error" :required="detailsModel.${item.name}.required" :validateStatus="detailsModel.${item.name}.validateStatus" :itemRules="rules.${item.name}" :labelName="$t('${view.name?lower_case}.${ctrl.getCodeName()?lower_case}.${item.getName()}')" :labelwidth="'${item.getLabelWidth()}px'" :labelPosition="'${item.getLabelPos()}'" :isShowCaption="${item.isShowCaption()?c}" :formItemStyle="{<#if item.getItemWidth()??&&item.getItemWidth() != 0>width:'${item.getItemWidth()}px',</#if><#if item.getItemHeight()?? && item.getItemHeight() != 0>height:'${item.getItemHeight()}px'</#if>}" :isEmptyCaption="${item.isEmptyCaption()?c}" :formItemContentStyle="{<#if item.getEditorHeight()?? && item.getEditorHeight() != 0>height:'${item.getEditorHeight()}px',</#if><#if item.getEditorWidth()?? && item.getEditorWidth() != 0>width:'${item.getEditorWidth()}px'</#if>}" class="app-form-item-${item.getName()} <#if item.getPSSysCss?? && item.getPSSysCss()??>${item.getPSSysCss().getCssName()}</#if>">
${P.getEditorCode(item, "EDITOR.vue").code}
</app-form-item>
</#if>
......
......@@ -5,7 +5,7 @@ new FormButtonModel({ ${detail}<#if item.getPSUIAction()??><#assign uiaction=ite
<#elseif item.getDetailType() == 'DRUIPART'>
new FormDRUIPartModel({ ${detail} })
<#elseif item.getDetailType() == 'FORMITEM'>
new FormItemModel({ ${detail}, disabled: false,validateStatus:"",enableCond: ${item.getEnableCond()?c} })
new FormItemModel({ ${detail}, disabled: false,validateStatus:"",error:"",required:<#if item.isAllowEmpty()>false<#else>true</#if>,enableCond: ${item.getEnableCond()?c} })
<#elseif item.getDetailType() == 'FORMPAGE'>
new FormPageModel({ ${detail} })
<#elseif item.getDetailType() == 'FORMPART'>
......
......@@ -11,12 +11,13 @@
if (${P.getPartCode(ITEMBLANK, 'DETAIL_LOGIC').code}) {
ret = false;
}
this.rules.${formdetail.name}.some((rule) => {
<#-- this.rules.${formdetail.name}.some((rule) => {
if (rule.hasOwnProperty('required')) {
rule.required = ret;
}
return false;
});
}); -->
this.detailsModel.${formdetail.name}.required = ret;
}
</#if>
<#if formdetail.getPSDEFDGroupLogic('ITEMENABLE')??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册