提交 89f8af23 编写于 作者: zhouweidong's avatar zhouweidong

菜单

上级 9a3a5b01
......@@ -46,7 +46,7 @@ TARGET=PSSYSTEM
<#list sys.getAllPSApps() as app>
<#if app_index gt 0 >,</#if>
{
<#--<#assign appmenu=getAppMenu(app)>-->
<#assign appmenu=getAppMenu(app)>
"appid":"${app.id}",
"appname":"${app.name}",
"appmenu":${appmenu}
......@@ -104,13 +104,13 @@ TARGET=PSSYSTEM
<#comment>获取应用菜单</#comment>
<#function getAppMenu app>
<#assign appMenuContent="[">
<#if app.getAllPSAppMenuModels()??>
<#list app.getAllPSAppMenuModels() as appMenu>
<#if appMenu_index gt 0>,</#if>
<#assign menuItems=getAppMenuItems(appMenu)>
<#assign appMenuContent=appMenuContent+"{ \"menu\":"+appMenu.name+" \"menuitem\":"+menuItems+" }">
</#list>
</#if>
<#--<#if app.getAllPSAppMenuModels()??>-->
<#--<#list app.getAllPSAppMenuModels() as appMenu>-->
<#--<#if appMenu_index gt 0>,</#if>-->
<#--<#assign menuItems=getAppMenuItems(appMenu)>-->
<#--<#assign appMenuContent=appMenuContent+"{ \"menu\":"+appMenu.name+" \"menuitem\":"+menuItems+" }">-->
<#--</#list>-->
<#--</#if>-->
<#assign appMenuContent=appMenuContent+"]">
</#function>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册