提交 76673243 编写于 作者: Neuromancer255's avatar Neuromancer255

工具栏权限显示逻辑判断 --fix1

上级 597b1a28
...@@ -24,20 +24,4 @@ ...@@ -24,20 +24,4 @@
public ${ctrl.name}ShowState: boolean = false; public ${ctrl.name}ShowState: boolean = false;
</#if> </#if>
/**
* 工具栏权限
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}
*/
get getToolBarLimit() {
let toolBarVisable:boolean;
if(this.righttoolbarModels){
toolBarVisable = Object.keys(this.righttoolbarModels).every((tbitem:any)=>{
return this.righttoolbarModels[tbitem] === true;
})
} else{
toolBarVisable = false;
}
return toolBarVisable;
}
...@@ -184,6 +184,24 @@ ...@@ -184,6 +184,24 @@
</#list> </#list>
</#if> </#if>
/**
* 工具栏权限
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}
*/
get getToolBarLimit() {
let toolBarVisable:boolean;
if(this.${ctrl.name?lower_case}Models){
toolBarVisable = Object.keys(this.${ctrl.name?lower_case}Models).every((tbitem:any)=>{
return this.${ctrl.name?lower_case}Models[tbitem] === true;
})
} else{
toolBarVisable = false;
}
return toolBarVisable;
}
<#if view.getPSAppViewLogics()??> <#if view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as logic> <#list view.getPSAppViewLogics() as logic>
<#if logic.getLogicTrigger() == "CUSTOM" || logic.getLogicTrigger() == "CTRLEVENT"> <#if logic.getLogicTrigger() == "CUSTOM" || logic.getLogicTrigger() == "CTRLEVENT">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册