提交 0628e896 编写于 作者: Mosher's avatar Mosher

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

上级 2ffc5d5a
......@@ -20,17 +20,28 @@ ${item.render.code}
style="<#if item.getHeight() gt 0>height: ${item.getHeight()?c}px;</#if><#if item.getWidth() gt 0>width: ${item.getWidth()?c}px</#if>"
</#if>
:formState="formState"
name="${item.name}"
:caption="<#if langbase??>$t('${langbase}.details.${item.name}')<#else>'${item.getCaption()}'</#if>"
<#if item.getContentType() != 'REPEATER'>
ctrlName="<#if item.getContentPSControl?? && item.getContentPSControl()??>${item.getContentPSControl().name}</#if>"
contentType="${item.getContentType()}"
@drdatasaved="drdatasaved($event)">
<#else>
:data='data'
<#if item.getPSDEFormDetails?? && item.getPSDEFormDetails()??>
:children="{
<#list item.getPSDEFormDetails() as formmenber>
<#if formmenber.getDetailType() == 'FORMITEM' || (formmenber.getDetailType() == 'MDCTRL' && formmenber.getContentType() == 'REPEATER')>
'${formmenber.name?lower_case}': '${formmenber.getDetailType()}',
</#if>
</#list>
}"
<#assign repeaterChildren = repeaterChildren + ''>
</#if>
:data="data['${item.name}']"
>
</#if>
<#if item.getContentType() == 'REPEATER'>
<template v-slot:default="{ context, viewparams, viewState }">
<template v-slot:default="{ context, viewparams, data, onFormItemValueChange }">
<#if item.getPSDEFormDetails?? && item.getPSDEFormDetails()??>
<#list item.getPSDEFormDetails() as formmenber>
<#if !(formmenber.isHidden?? && formmenber.isHidden())>
......
......@@ -27,9 +27,4 @@ new FormTabPanelModel({ ${detail}, tabPages: [<#list item.getPSDEFormTabPages()
new FormUserControlModel({ ${detail} })
<#elseif item.getDetailType() == 'MDCTRL'>
new FormMdCtrlModel({ ${detail} })
<#if item.getContentType() == 'REPEATER' && item.getPSDEFormDetails?? && item.getPSDEFormDetails()??>
<#list item.getPSDEFormDetails() as formmenber>
${formmenber.name}: ${P.getPartCode(formmenber, 'DETAIL_MODEL').code},
</#list>
</#if>
</#if>
\ No newline at end of file
......@@ -553,7 +553,13 @@ import { Environment } from '@/environments/environment';
*/
public detailsModel: any = {
<#list ctrl.getAllPSDEFormDetails() as formdetail>
${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code},
${formdetail.name}: ${P.getPartCode(formdetail, 'DETAIL_MODEL').code},
<#-- 适配多数据部件子项无属性没添加进去的问题 -->
<#if formdetail.getDetailType() == 'MDCTRL' && formdetail.getContentType() == 'REPEATER' && formdetail.getPSDEFormDetails?? && formdetail.getPSDEFormDetails()??>
<#list formdetail.getPSDEFormDetails() as formmenber>
${formmenber.name}: ${P.getPartCode(formmenber, 'DETAIL_MODEL').code},
</#list>
</#if>
</#list>
<#if !ctrl.isNoTabHeader()>
${ctrl.name}: new FormTabPanelModel({ caption: '${ctrl.name}', detailType: 'TABPANEL', name: '${ctrl.name}', visible: true, isShowCaption: true, form: this, tabPages: [<#list ctrl.getPSDEFormPages() as formmenber><#if formmenber_index gt 0>, </#if>{ name: '${formmenber.name}', index: ${formmenber_index}, visible: <#if formmenber.getPSDEFDGroupLogic('PANELVISIBLE')??>false<#else>true</#if> }</#list>] }),
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册