提交 7f81fb32 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--门户部件界面行为

上级 568a4154
<#if ctrl.getPortletType() != 'CONTAINER'> <#if ctrl.getPortletType() != 'CONTAINER'>
<#ibizinclude>../@MACRO/CONTROL/LANGBASE.vue.ftl</#ibizinclude> <#ibizinclude>../@MACRO/CONTROL/LANGBASE.vue.ftl</#ibizinclude>
<template> <#macro renderUiaction>
<div class='portlet ${srffilepath2(ctrl.getCodeName())} <#if ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if>' :style="{<#if (ctrl.getHeight?? && ctrl.getHeight() gt 0)>'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,</#if><#if (ctrl.getWidth?? && ctrl.getWidth() gt 0)>'width': isAdaptiveSize ? 'calc(100% - 16px)' : (width ? width+'px' :'${ctrl.getWidth()?c}px')</#if>}">
<#if ctrl.getPortletType?? && ctrl.getPortletType()??><#t>
<#-- 视图 -->
<#if ctrl.getPortletType() == 'VIEW' && ctrl.getPortletPSAppView?? && ctrl.getPortletPSAppView()??><#t>
<#if ctrl.isShowTitleBar() && ctrl.getTitle()??>
<p class='portlet-title'>
<span>
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()}
</span>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??> <#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() /> <#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() />
<span class="portlet-action"> <span class="portlet-action">
<#list UIActionDetails as uiactiondetail> <#list UIActionDetails as uiactiondetail>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)"> <a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction()??> <#if uiactiondetail.getPSUIAction()??>
...@@ -23,8 +13,23 @@ ...@@ -23,8 +13,23 @@
</#if> </#if>
</a> </a>
</#list> </#list>
</span> </span>
</#if> </#if>
</#macro>
<template>
<div class='portlet ${srffilepath2(ctrl.getCodeName())} <#if ctrl.getPSSysCss()??> ${ctrl.getPSSysCss().getCssName()}</#if>' :style="{<#if (ctrl.getHeight?? && ctrl.getHeight() gt 0)>'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,</#if><#if (ctrl.getWidth?? && ctrl.getWidth() gt 0)>'width': isAdaptiveSize ? 'calc(100% - 16px)' : (width ? width+'px' :'${ctrl.getWidth()?c}px')</#if>}">
<#if ctrl.getPortletType?? && ctrl.getPortletType()??><#t>
<#-- 视图 -->
<#if ctrl.getPortletType() == 'VIEW' && ctrl.getPortletPSAppView?? && ctrl.getPortletPSAppView()??><#t>
<#if ctrl.isShowTitleBar() && ctrl.getTitle()??>
<p class='portlet-title'>
<span>
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()}
</span>
<@ibizindent blank=12>
<@renderUiaction />
</@ibizindent>
</p> </p>
</#if> </#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>"> <div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
...@@ -39,20 +44,9 @@ ...@@ -39,20 +44,9 @@
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if> <#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()} ${ctrl.getTitle()}
</span> </span>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??> <@ibizindent blank=12>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() /> <@renderUiaction />
<span class="portlet-action"> </@ibizindent>
<#list UIActionDetails as uiactiondetail>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction()??>
<#if uiactiondetail.isShowIcon()><#if uiactiondetail.getPSUIAction().getPSSysImage()??><#assign viewimg=uiactiondetail.getPSUIAction().getPSSysImage()/><#if viewimg.getCssClass() != ''><i class="${viewimg.getCssClass()}" /><#else><img src="${viewimg.getImagePath()}" /></#if></#if></#if>
<#-- <#if uiactiondetail.isShowCaption()><span><#if langbase??>{{$t('${langbase}.uiactions.${uiactiondetail.getPSUIAction().getUIActionTag()?lower_case}')}}<#else>${uiactiondetail.getPSUIAction().getCaption()}</#if></span></#if> -->
<#if uiactiondetail.isShowCaption()><span>${uiactiondetail.getPSUIAction().getCaption()}</span></#if>
</#if>
</a>
</#list>
</span>
</#if>
</p> </p>
</#if> </#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>"> <div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
...@@ -69,20 +63,9 @@ ...@@ -69,20 +63,9 @@
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if> <#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()} ${ctrl.getTitle()}
</span> </span>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??> <@ibizindent blank=12>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() /> <@renderUiaction />
<span class="portlet-action"> </@ibizindent>
<#list UIActionDetails as uiactiondetail>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction()??>
<#if uiactiondetail.isShowIcon()><#if uiactiondetail.getPSUIAction().getPSSysImage()??><#assign viewimg=uiactiondetail.getPSUIAction().getPSSysImage()/><#if viewimg.getCssClass() != ''><i class="${viewimg.getCssClass()}" /><#else><img src="${viewimg.getImagePath()}" /></#if></#if></#if>
<#-- <#if uiactiondetail.isShowCaption()><span><#if langbase??>{{$t('${langbase}.uiactions.${uiactiondetail.getPSUIAction().getUIActionTag()?lower_case}')}}<#else>${uiactiondetail.getPSUIAction().getCaption()}</#if></span></#if> -->
<#if uiactiondetail.isShowCaption()><span>${uiactiondetail.getPSUIAction().getCaption()}</span></#if>
</#if>
</a>
</#list>
</span>
</#if>
</p> </p>
</#if> </#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>"> <div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
...@@ -117,20 +100,9 @@ ...@@ -117,20 +100,9 @@
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if> <#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()} ${ctrl.getTitle()}
</span> </span>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??> <@ibizindent blank=12>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() /> <@renderUiaction />
<span class="portlet-action"> </@ibizindent>
<#list UIActionDetails as uiactiondetail>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction()??>
<#if uiactiondetail.isShowIcon()><#if uiactiondetail.getPSUIAction().getPSSysImage()??><#assign viewimg=uiactiondetail.getPSUIAction().getPSSysImage()/><#if viewimg.getCssClass() != ''><i class="${viewimg.getCssClass()}" /><#else><img src="${viewimg.getImagePath()}" /></#if></#if></#if>
<#-- <#if uiactiondetail.isShowCaption()><span><#if langbase??>{{$t('${langbase}.uiactions.${uiactiondetail.getPSUIAction().getUIActionTag()?lower_case}')}}<#else>${uiactiondetail.getPSUIAction().getCaption()}</#if></span></#if> -->
<#if uiactiondetail.isShowCaption()><span>${uiactiondetail.getPSUIAction().getCaption()}</span></#if>
</#if>
</a>
</#list>
</span>
</#if>
</p> </p>
</#if> </#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>"> <div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
...@@ -144,20 +116,9 @@ ...@@ -144,20 +116,9 @@
<#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if> <#if ctrl.getPSSysImage()??><i class='<#assign img=ctrl.getPSSysImage()><#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if>
${ctrl.getTitle()} ${ctrl.getTitle()}
</span> </span>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??> <@ibizindent blank=12>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() /> <@renderUiaction />
<span class="portlet-action"> </@ibizindent>
<#list UIActionDetails as uiactiondetail>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction()??>
<#if uiactiondetail.isShowIcon()><#if uiactiondetail.getPSUIAction().getPSSysImage()??><#assign viewimg=uiactiondetail.getPSUIAction().getPSSysImage()/><#if viewimg.getCssClass() != ''><i class="${viewimg.getCssClass()}" /><#else><img src="${viewimg.getImagePath()}" /></#if></#if></#if>
<#-- <#if uiactiondetail.isShowCaption()><span><#if langbase??>{{$t('${langbase}.uiactions.${uiactiondetail.getPSUIAction().getUIActionTag()?lower_case}')}}<#else>${uiactiondetail.getPSUIAction().getCaption()}</#if></span></#if> -->
<#if uiactiondetail.isShowCaption()><span>${uiactiondetail.getPSUIAction().getCaption()}</span></#if>
</#if>
</a>
</#list>
</span>
</#if>
</p> </p>
</#if> </#if>
<div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>"> <div class="<#if ctrl.isShowTitleBar()>portlet-with-title<#else>portlet-without-title</#if>">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册