提交 2cab0b36 编写于 作者: Mosher's avatar Mosher

门户部件界面行为过滤操作栏

上级 ccd3e514
......@@ -220,6 +220,14 @@ import { Environment } from '@/environments/environment';
*/
@Prop() public width?: number;
/**
* 门户部件类型
*
* @type {number}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public portletType: string = '<#if ctrl.getPortletType?? && ctrl.getPortletType()??>${ctrl.getPortletType()?lower_case}</#if>';
/**
* 视图默认使用
*
......@@ -434,6 +442,10 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcUIActionAuthState(data:any = {}) {
// 如果是操作栏,不计算权限
if(this.portletType && Object.is('actionbar', this.portletType)) {
return;
}
let _this: any = this;
if(_this.uiactionModel && _this.appUIService){
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,_this.appUIService);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册