提交 c5442238 编写于 作者: tony001's avatar tony001

补充门户部件界面行为权限

上级 0c664fb2
...@@ -279,14 +279,14 @@ import { Environment } from '@/environments/environment'; ...@@ -279,14 +279,14 @@ import { Environment } from '@/environments/environment';
} }
</#if> </#if>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() />
/** /**
* 界面行为模型数据 * 界面行为模型数据
* *
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public uiactionModel: any = { public uiactionModel: any = {
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() />
<#list UIActionDetails as uiactiondetail> <#list UIActionDetails as uiactiondetail>
<#if uiactiondetail.getPSUIAction()??> <#if uiactiondetail.getPSUIAction()??>
<#assign uiaction = uiactiondetail.getPSUIAction() /> <#assign uiaction = uiactiondetail.getPSUIAction() />
...@@ -298,8 +298,8 @@ import { Environment } from '@/environments/environment'; ...@@ -298,8 +298,8 @@ import { Environment } from '@/environments/environment';
${uiactionname}: {name: '${uiactionname}', actiontarget: 'NONE', <#if uiactiondetail.isShowCaption()>caption: '<#if uiactiondetail.caption??>${uiactiondetail.caption}</#if>',</#if> disabled: false, type: '<#if uiactiondetail.getDetailType?? && uiactiondetail.getDetailType()??>${uiactiondetail.getDetailType()}</#if>', visabled: true, dataaccaction: '<#if uiaction.getDataAccessAction()??>${uiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${uiaction.getUIActionTag()}', target: '${uiaction.getActionTarget()}' } }, ${uiactionname}: {name: '${uiactionname}', actiontarget: 'NONE', <#if uiactiondetail.isShowCaption()>caption: '<#if uiactiondetail.caption??>${uiactiondetail.caption}</#if>',</#if> disabled: false, type: '<#if uiactiondetail.getDetailType?? && uiactiondetail.getDetailType()??>${uiactiondetail.getDetailType()}</#if>', visabled: true, dataaccaction: '<#if uiaction.getDataAccessAction()??>${uiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${uiaction.getUIActionTag()}', target: '${uiaction.getActionTarget()}' } },
</#if> </#if>
</#list> </#list>
</#if>
} }
</#if>
<#if ctrl.getPortletType?? && ctrl.getPortletType()?? && ctrl.getPortletType() == "TOOLBAR" > <#if ctrl.getPortletType?? && ctrl.getPortletType()?? && ctrl.getPortletType() == "TOOLBAR" >
<#assign toolbar = ctrl.getContentPSControl()/> <#assign toolbar = ctrl.getContentPSControl()/>
...@@ -383,7 +383,7 @@ import { Environment } from '@/environments/environment'; ...@@ -383,7 +383,7 @@ import { Environment } from '@/environments/environment';
}); });
} }
if(this.uiactionModel) { if(this.uiactionModel) {
this.calcUiactionState(); this.calcUIActionAuthState();
} }
} }
...@@ -428,11 +428,15 @@ import { Environment } from '@/environments/environment'; ...@@ -428,11 +428,15 @@ import { Environment } from '@/environments/environment';
</#if> </#if>
</#if> </#if>
public calcUiactionState() { /**
* 计算界面行为权限
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcUIActionAuthState(data:any = {}) {
let _this: any = this; let _this: any = this;
// 界面行为
if(_this.uiactionModel && _this.appUIService){ if(_this.uiactionModel && _this.appUIService){
ViewTool.calcActionItemAuthState({},_this.actionModel,_this.appUIService); ViewTool.calcActionItemAuthState(data,_this.actionModel,_this.appUIService);
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册