提交 09aa3000 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新按钮界面行为权限计算

上级 d1a1db9d
...@@ -134,10 +134,14 @@ export class PanelButtonModel extends PanelDetailModel { ...@@ -134,10 +134,14 @@ export class PanelButtonModel extends PanelDetailModel {
* @private * @private
* @memberof PanelButtonModel * @memberof PanelButtonModel
*/ */
public computeActionAuthState() { public async computeActionAuthState() {
if (this.uiAction && this.uiAction.dataaccaction && this.getData()) { if (this.uiAction && this.uiAction.dataaccaction && this.getData()) {
let tempUIAction: any = Util.deepCopy(this.uiAction); let tempUIAction: any = Util.deepCopy(this.uiAction);
ViewTool.calcActionItemAuthState(this.data, [tempUIAction], this.panel.appUIService ? this.panel.appUIService : null); let uiService = null;
if (this.uiAction.actionDECodeName) {
uiService = await window.uiServiceRegister.getService(this.uiAction.actionDECodeName.toLowerCase());
}
ViewTool.calcActionItemAuthState(this.data, [tempUIAction], uiService);
this.visible = tempUIAction.visabled; this.visible = tempUIAction.visabled;
this.disabled = tempUIAction.disabled; this.disabled = tempUIAction.disabled;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册