提交 11fd9f3a 编写于 作者: Mosher's avatar Mosher

增加门户部件界面行为组权限校验

上级 87b2858b
......@@ -8,7 +8,12 @@
<#if !uiactiondetail.isShowCaption()>
<tooltip :transfer="true" :max-width="600">
</#if>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)">
<#if uiactiondetail.getPSUIAction?? && uiactiondetail.getPSUIAction()?? && uiactiondetail.getPSUIAction().getCodeName?? && uiactiondetail.getPSUIAction().getCodeName()??>
<#assign uiactionname = uiactiondetail.getPSUIAction().getCodeName()?lower_case />
<#else>
<#assign uiactionname = uiactiondetail.getName()?lower_case />
</#if>
<a @click="uiAction('${uiactiondetail.getName()?lower_case}', $event)" v-show="actionModel['${uiactionname}'].visabled" :disabled="actionModel['${uiactionname}'].disabled">
<#if uiactiondetail.getPSUIAction()??>
<#if uiactiondetail.isShowIcon()>
<#if uiactiondetail.getPSUIAction().getPSSysImage()??>
......@@ -274,6 +279,34 @@ import { Environment } from '@/environments/environment';
}
</#if>
<#if ctrl.getPSUIActionGroup?? && ctrl.getPSUIActionGroup()?? && ctrl.getPSUIActionGroup().getPSUIActionGroupDetails()??>
<#assign UIActionDetails=ctrl.getPSUIActionGroup().getPSUIActionGroupDetails() />
/**
* 界面行为模型数据
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public uiactionModel: any = {
<#list UIActionDetails as uiactiondetail>
<#if uiactiondetail.getPSUIAction()??>
<#assign uiaction = uiactiondetail.getPSUIAction() />
<#if uiaction.getCodeName?? && uiaction.getCodeName()??>
<#assign uiactionname = uiaction.getCodeName()?lower_case />
<#else>
<#assign uiactionname = uiactiondetail.getName()?lower_case />
</#if>
<#if uiaction.getUiActionTag == 'ExportExcel'>
${uiactionname}: {name: '${uiactionname}', actiontarget: 'NONE', <#if uiactiondetail.isShowCaption()>caption: '${uiactiondetail.caption}',</#if> disabled: false, type: '${uiactiondetail.getDetailType}', visabled: true, dataaccaction: '<#if uiaction.getDataAccessAction()??>${uiaction.getDataAccessAction()}</#if>' uiaction: { tag: '${uiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } <#if view.hasPSControl("GRID")><#assign gridhandler = view.getPSControl("GRID").getPSAjaxControlHandler()>, MaxRowCount: <#if gridhandler?? && gridhandler.getPSDEDataExport()??>${gridhandler.getPSDEDataExport().getMaxRowCount()?c}<#elseif sys.getDEDataExportMaxRowCount() gt 0>${sys.getDEDataExportMaxRowCount()?c}<#else>10000</#if></#if> },
<#elseif uiaction.getUIActionTag() == 'ToggleRowEdit'>
${uiactionname}: {name: '${uiactionname}', actiontarget: 'NONE', <#if uiactiondetail.isShowCaption()>caption: '${uiactiondetail.caption}',</#if> disabled: false, type: '${uiactiondetail.getDetailType}', visabled: true, dataaccaction: '<#if uiaction.getDataAccessAction()??>${uiaction.getDataAccessAction()}</#if>' uiaction: { tag: '${uiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
<#else>
${uiactionname}: {name: '${uiactionname}', actiontarget: 'NONE', <#if uiactiondetail.isShowCaption()>caption: '${uiactiondetail.caption}',</#if> disabled: false, type: '${uiactiondetail.getDetailType}', visabled: true, dataaccaction: '<#if uiaction.getDataAccessAction()??>${uiaction.getDataAccessAction()}</#if>' uiaction: { tag: '${uiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
</#if>
</#if>
</#list>
}
</#if>
<#if ctrl.getPortletType?? && ctrl.getPortletType()?? && ctrl.getPortletType() == "TOOLBAR" >
<#assign toolbar = ctrl.getContentPSControl()/>
${P.getCtrlCode(toolbar, 'CONTROL.vue').code}
......@@ -355,6 +388,9 @@ import { Environment } from '@/environments/environment';
});
});
}
if(this.uiactionModel) {
this.calcUiactionState();
}
}
/**
......@@ -398,6 +434,14 @@ import { Environment } from '@/environments/environment';
</#if>
</#if>
public calcUiactionState() {
let _this: any = this;
// 界面行为
if(_this.uiactionModel && _this.appUIService){
ViewTool.calcActionItemAuthState({},_this.actionModel,_this.appUIService);
}
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册