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

调整门户部件界面行为组权限问题

上级 c5442238
......@@ -373,6 +373,9 @@ import { Environment } from '@/environments/environment';
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if(Object.is(tag, "all-portlet") && Object.is(action,'loadmodel')){
this.calcUIActionAuthState(data);
}
if (!Object.is(tag, this.name)) {
return;
}
......@@ -382,9 +385,6 @@ import { Environment } from '@/environments/environment';
});
});
}
if(this.uiactionModel) {
this.calcUIActionAuthState();
}
}
/**
......@@ -436,7 +436,7 @@ import { Environment } from '@/environments/environment';
public calcUIActionAuthState(data:any = {}) {
let _this: any = this;
if(_this.uiactionModel && _this.appUIService){
ViewTool.calcActionItemAuthState(data,_this.actionModel,_this.appUIService);
ViewTool.calcActionItemAuthState(data,_this.uiactionModel,_this.appUIService);
}
}
......
......@@ -16,7 +16,7 @@ this.$forceUpdate();
return;
}
const { data: _data } = response;
this.viewState.next({ tag: 'app-actionbar', action: 'loadmodel', data:_data});
this.viewState.next({ tag: 'all-portlet', action: 'loadmodel', data:_data});
if (_data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case}) {
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
......
......@@ -26,7 +26,7 @@ this.$forceUpdate();
return;
}
const { data: _data } = response;
this.viewState.next({ tag: 'app-actionbar', action: 'loadmodel', data:_data});
this.viewState.next({ tag: 'all-portlet', action: 'loadmodel', data:_data});
if (_data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case}) {
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
......
......@@ -26,7 +26,7 @@ this.$forceUpdate();
return;
}
const { data: _data } = response;
this.viewState.next({ tag: 'app-actionbar', action: 'loadmodel', data:_data});
this.viewState.next({ tag: 'all-portlet', action: 'loadmodel', data:_data});
if (_data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case}) {
Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} });
if(this.$tabPageExp){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册