CONTROL-BASE.vue#DETAIL_DRUIPART.ftl 2.0 KB
Newer Older
tony001's avatar
tony001 committed
1
<#ibizinclude>../@MACRO/FUNC/MACRO.ftl</#ibizinclude>
2 3 4 5 6 7 8 9 10
<#if item.render??>
${item.render.code}
<#else>
<#assign dritem = item.getPSDEDRItem() />
<#assign refView = item.getPSAppView() />
<#assign appDataEntity = refView.getPSAppDataEntity()/>
<app-form-druipart
    <#if item.getPSSysCss?? && item.getPSSysCss()??>class="${item.getPSSysCss().getCssName()}"</#if>
    :formState="formState"
tony001's avatar
tony001 committed
11
    :isForbidLoad="this.data.srfuf === '0'"
12 13 14 15 16 17 18 19 20 21 22 23
    paramItem='<#if item.getParamItem()??>${item.getParamItem()}<#else>${appde.getCodeName()?lower_case}</#if>' 
    :parentdata='<#if dritem.getParentDataJO?? && dritem.getParentDataJO()??>${dritem.getParentDataJO()}<#else>{}</#if>'
    :parameters="[
        <#if refView.getPSAppDERSPathCount() gt 0>
        <#list refView.getPSAppDERSPath(refView.getPSAppDERSPathCount() - 1) as deRSPath>
        <#assign majorPSAppDataEntity = deRSPath.getMajorPSAppDataEntity()/>
        { pathName: '${srfpluralize(majorPSAppDataEntity.codeName)?lower_case}', parameterName: '${majorPSAppDataEntity.getCodeName()?lower_case}' },
        </#list>
        </#if>
    ]"
    :context="context"
    :viewparams="viewparams"
tony001's avatar
tony001 committed
24 25
    :localContext ='<@getNavigateContext item />'
    :localParam ='<@getNavigateParams item />'
26 27 28 29 30 31 32 33 34 35 36
    parameterName='${appde.getCodeName()?lower_case}'
    parentName="${appde.getCodeName()}"  
    refviewtype='<#if refView.getPSViewType()??>${refView.getPSViewType().getId()}</#if>' 
    refreshitems='<#if item.getRefreshItems()??>${item.getRefreshItems()}</#if>' 
    :ignorefieldvaluechange="ignorefieldvaluechange"
    viewname='${srffilepath2(refView.codeName)}' 
    :data="JSON.stringify(this.data)" 
    @drdatasaved="drdatasaved($event)"
    style="<#if item.getPSLayoutPos()?? && item.getPSLayoutPos().getLayout() == "FLEX">height: 100%</#if><#if item.getContentHeight() == 0><#if refView.getHeight() gt 0>height:${refView.getHeight()?c}px</#if><#else>height:${item.getContentHeight()?c}px</#if>;overflow: auto;">
</app-form-druipart>
</#if>