提交 2c22c434 编写于 作者: KK's avatar KK

获取界面i行为模型

上级 098b18f1
......@@ -114,27 +114,45 @@
</#list>
</#if>
/**
* 界面行为模型
*
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public ActionModel:any ={
<#if mdctrl.getPSUIActions()??>
<#list mdctrl.getPSUIActions() as item>
${item.getUIActionTag()}: { name: '${item.getUIActionTag()}',disabled: false, visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode(view)??>${item.getNoPrivDisplayMode(view)}</#if>,dataaccaction: '<#if item.getDataAccessAction()??>${item.getDataAccessAction()}</#if>', target: '${item.getActionTarget()}'}<#if item_has_next>,</#if>
</#list>
</#if>
};
public UIActions = {
left:[<#if mdctrl.getPSDEUIActionGroup2?? && mdctrl.getPSDEUIActionGroup2()??>
<#assign left = mdctrl.getPSDEUIActionGroup2()>
<#if left.getPSUIActionGroupDetails?? && left.getPSUIActionGroupDetails()??>
<#list left.getPSUIActionGroupDetails() as action>
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'},
</#list>
</#if>
</#if>],
right:[<#if mdctrl.getPSDEUIActionGroup?? && mdctrl.getPSDEUIActionGroup()??>
<#assign right = mdctrl.getPSDEUIActionGroup()>
<#if right.getPSUIActionGroupDetails?? && right.getPSUIActionGroupDetails()??>
<#list right.getPSUIActionGroupDetails() as action>
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'},
</#list>
</#if>
</#if>
]
}
/**
* 界面行为模型
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public UIActions = {
left:[<#if mdctrl.getPSDEUIActionGroup2?? && mdctrl.getPSDEUIActionGroup2()??>
<#assign left = mdctrl.getPSDEUIActionGroup2()>
<#if left.getPSUIActionGroupDetails?? && left.getPSUIActionGroupDetails()??>
<#list left.getPSUIActionGroupDetails() as action>
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'},
</#list>
</#if>
</#if>],
right:[<#if mdctrl.getPSDEUIActionGroup?? && mdctrl.getPSDEUIActionGroup()??>
<#assign right = mdctrl.getPSDEUIActionGroup()>
<#if right.getPSUIActionGroupDetails?? && right.getPSUIActionGroupDetails()??>
<#list right.getPSUIActionGroupDetails() as action>
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'},
</#list>
</#if>
</#if>
]
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册