portlet-data.json.ftl 1.8 KB
Newer Older
KK's avatar
KK committed
1 2 3
<#ibiztemplate>
TARGET=PSSYSAPP
</#ibiztemplate>
KK's avatar
KK committed
4
[<#if app.getAllPSAppPortlets?? && app.getAllPSAppPortlets()??>
KK's avatar
KK committed
5 6 7 8 9 10 11 12
<#list app.getAllPSAppPortlets() as appPortlet>
<#if appPortlet.isEnableAppDashboard?? && appPortlet.isEnableAppDashboard()?? && appPortlet.isEnableAppDashboard() == true>
<#if appPortlet.getPSAppDataEntity?? && appPortlet.getPSAppDataEntity()??>
<#assign appDataEntity = appPortlet.getPSAppDataEntity() />
{"type":"app",
"appCodeName":"${appDataEntity.getCodeName()}",
"appName":"${appDataEntity.getLogicName()}",
"portletCodeName": "${appPortlet.getCodeName()}",
KK's avatar
KK committed
13
"detailText":"${appPortlet.getUserTag()}",
14 15 16 17
<#if appPortlet.getPSSysPortlet?? && appPortlet.getPSSysPortlet()??>
"portletTYpe":"${appPortlet.getPSSysPortlet().getPortletType()}",
"detailImage":"<#if appPortlet.getPSSysPortlet().getPSSysImage?? && appPortlet.getPSSysPortlet().getPSSysImage()?? && appPortlet.getPSSysPortlet().getPSSysImage().getImagePath?? && appPortlet.getPSSysPortlet().getPSSysImage().getImagePath()??>${appPortlet.getPSSysPortlet().getPSSysImage().getImagePath()}</#if>",
"componentName":"app-${srffilepath2(appDataEntity.getCodeName())}-${srffilepath2(appPortlet.getPSSysPortlet().getCodeName())}-portlet",</#if>
KK's avatar
KK committed
18
"portletName": "${appPortlet.getName()}"}<#if appPortlet_has_next>,</#if>
KK's avatar
KK committed
19 20 21 22 23 24 25 26 27 28
<#else>
{"type":"app",
"appCodeName":"${app.getPKGCodeName()}",
"appName":"${app.getName()}",
"portletCodeName": "${appPortlet.getCodeName()}",
"detailText":"${appPortlet.getUserTag()}",
"detailImage":"${appPortlet.getUserTag2()}",
<#if appPortlet.getPSSysPortlet?? && appPortlet.getPSSysPortlet()??>"portletTYpe":"${appPortlet.getPSSysPortlet().getPortletType()}","componentName":"app-${srffilepath2(appPortlet.getPSSysPortlet().getCodeName())}-portlet",</#if>
"portletName": "${appPortlet.getName()}"}<#if appPortlet_has_next>,</#if>
</#if>
KK's avatar
KK committed
29 30 31 32
</#if>
</#list>
</#if>
]