提交 8f8f116d 编写于 作者: Mosher's avatar Mosher

update: 更新表单多数据部件(重复器)--- u5

上级 b53e718d
......@@ -5,15 +5,13 @@
<#if item.render??>
${item.render.code}
<#else>
<#if item.getParentPSDEFormDetail?? && item.getParentPSDEFormDetail()?? && item.getParentPSDEFormDetail().getDetailType?? && item.getParentPSDEFormDetail().getDetailType()?? && item.getParentPSDEFormDetail().getDetailType() == 'MDCTRL'>
<#if item.getParentPSDEFormDetail().getContentType() == 'REPEATER' && item.getParentPSDEFormDetail().getDetailStyle() == 'STYLE2'>
<#if item.getParentPSDEFormDetail?? && item.getParentPSDEFormDetail()?? && item.getParentPSDEFormDetail().getDetailType?? && item.getParentPSDEFormDetail().getDetailType()?? && item.getParentPSDEFormDetail().getDetailType() == 'MDCTRL' && item.getParentPSDEFormDetail().getContentType() == 'REPEATER' && item.getParentPSDEFormDetail().getDetailStyle() == 'STYLE2'>
<#if item.isCompositeItem()>
<#assign formitems=item.getPSDEFormItems()>
<app-range-editor v-model="data.${item.name}" :activeData="data" :disabled="detailsModel.${item.name}.disabled" name="${item.name}" editorType="${item.getEditorType()}" format="${item.getEditorParam("TIMEFMT","")}" :refFormItem="[<#list formitems as formitem><#if formitem_index gt 0>,</#if>'${formitem.name}'</#list>]" @formitemvaluechange="onFormItemValueChange" style="<#if item.getContentWidth()?? && item.getContentWidth() != 0>width:${item.getContentWidth()}px;</#if><#if item.getContentHeight()?? && item.getContentHeight() != 0>height:${item.getContentHeight()}px;</#if>"></app-range-editor>
<#else>
${P.getEditorCode(item, "EDITOR.vue").code}
</#if>
</#if>
<#else>
<app-form-item name='${item.name}' :itemRules="rules().${item.name}"<#if item.getPSSysCss?? && item.getPSSysCss()??> class='${item.getPSSysCss().getCssName()}'</#if><#if item.getLabelPSSysCss?? && item.getLabelPSSysCss()??> labelStyle="${item.getLabelPSSysCss().getCssName()}"</#if> :caption="<#if langbase??>$t('${langbase}.details.${item.name}')<#else>'${item.getCaption()}'</#if>" uiStyle="${item.getDetailStyle()}" :labelWidth="${item.getLabelWidth()?c}" :isShowCaption="${item.isShowCaption()?c}" :error="detailsModel.${item.name}.error" :isEmptyCaption="${item.isEmptyCaption()?c}" labelPos="${item.getLabelPos()}">
<#if item.isCompositeItem()>
......
......@@ -269,6 +269,10 @@ import { Environment } from '@/environments/environment';
public data: any = {
<#list ctrl.getAllPSDEFormDetails() as item>
<#if item.getDetailType?? && item.getDetailType()?? && (item.getDetailType() == "FORMITEM" || item.getDetailType() == "FORMPART")>
${item.getName()}: null,
</#if>
适配多数据部件
<#if item.getDetailType?? && item.getDetailType()?? && item.getDetailType() == 'MDCTRL' && item.getContentType?? && item.getContentType()?? && item.getContentType() == 'REPEATER'>
${item.getName()}: null,
</#if>
</#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册