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

获取界面i行为模型

上级 098b18f1
...@@ -114,27 +114,45 @@ ...@@ -114,27 +114,45 @@
</#list> </#list>
</#if> </#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()> * @type {boolean}
<#if left.getPSUIActionGroupDetails?? && left.getPSUIActionGroupDetails()??> * @memberof ${srfclassname('${view.name}')}Base
<#list left.getPSUIActionGroupDetails() as action> */
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'}, public UIActions = {
</#list> left:[<#if mdctrl.getPSDEUIActionGroup2?? && mdctrl.getPSDEUIActionGroup2()??>
</#if> <#assign left = mdctrl.getPSDEUIActionGroup2()>
</#if>], <#if left.getPSUIActionGroupDetails?? && left.getPSUIActionGroupDetails()??>
right:[<#if mdctrl.getPSDEUIActionGroup?? && mdctrl.getPSDEUIActionGroup()??> <#list left.getPSUIActionGroupDetails() as action>
<#assign right = mdctrl.getPSDEUIActionGroup()> {name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'},
<#if right.getPSUIActionGroupDetails?? && right.getPSUIActionGroupDetails()??> </#list>
<#list right.getPSUIActionGroupDetails() as action> </#if>
{name:'${action.getName()}',title:'<#if action.getPSUIAction?? && action.getPSUIAction()??>${action.getPSUIAction().getName()}</#if>'}, </#if>],
</#list> right:[<#if mdctrl.getPSDEUIActionGroup?? && mdctrl.getPSDEUIActionGroup()??>
</#if> <#assign right = mdctrl.getPSDEUIActionGroup()>
</#if> <#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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册