提交 62cc3bf7 编写于 作者: Mosher's avatar Mosher

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

上级 852655ac
......@@ -6,19 +6,14 @@
${item.render.code}
<#else>
<#if item.getParentPSDEFormDetail?? && item.getParentPSDEFormDetail()?? && item.getParentPSDEFormDetail().getDetailType?? && item.getParentPSDEFormDetail().getDetailType()?? && item.getParentPSDEFormDetail().getDetailType() == 'MDCTRL' && item.getParentPSDEFormDetail().getContentType() == 'REPEATER' && item.getParentPSDEFormDetail().getDetailStyle() == 'STYLE2'>
<el-table-column prop='${item.name}' align='<#if item.getParentPSDEFormDetail().getColumnAlign?? && item.getParentPSDEFormDetail().getColumnAlign()??>${item.getParentPSDEFormDetail().getColumnAlign()?lower_case}<#else>center</#if>'>
<template #header>
<span>{{ ${item.getCaption()} }}</span>
</template>
<template #default="{ row: data, column, $index }">
<template #${item.name}="{ context, viewparams, data, onFormItemValueChange }">
<#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>
</template>
</el-table-column>
</template>
<#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()>
......
......@@ -31,7 +31,7 @@ ${item.render.code}
:children="{
<#list item.getPSDEFormDetails() as formmenber>
<#if formmenber.getDetailType() == 'FORMITEM' || (formmenber.getDetailType() == 'MDCTRL' && formmenber.getContentType() == 'REPEATER')>
'${formmenber.name?lower_case}': '${formmenber.getDetailType()}',
'${formmenber.name?lower_case}': { type: '${formmenber.getDetailType()}', caption: '${item.getCaption()}' },
</#if>
</#list>
}"
......@@ -39,7 +39,7 @@ ${item.render.code}
:data="data['${item.name}']"
>
</#if>
<#if item.getContentType() == 'REPEATER'>
<#if item.getContentType() == 'REPEATER' && item.getDetailStyle?? && item.getDetailStyle()?? && item.getDetailStyle() != 'STYLE2'>
<template v-slot:default="{ context, viewparams, data, onFormItemValueChange }">
<#if item.getPSDEFormDetails?? && item.getPSDEFormDetails()??>
<#list item.getPSDEFormDetails() as formmenber>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册