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

权限过滤调整

上级 2837d928
......@@ -143,7 +143,7 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public computedActiviedPanel(){
if(Environment.enablePermissionValid){
if(this.$store.getters['authresource/getEnablePermissionValid']){
if(Object.keys(this.authResourceObject).length >0){
let targetResult:Array<any> = [];
Object.keys(this.authResourceObject).forEach((item:any) =>{
......@@ -165,7 +165,7 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public computedAuthorizedPanel(name:string){
if(!Environment.enablePermissionValid)
if(!this.$store.getters['authresource/getEnablePermissionValid'])
return true;
if(!this.authResourceObject[name])
return true;
......
......@@ -530,7 +530,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public handleMenusResource(inputMenus:Array<any>){
if(Environment.enablePermissionValid){
if(this.$store.getters['authresource/getEnablePermissionValid']){
this.computedEffectiveMenus(inputMenus);
this.computeParentMenus(inputMenus);
}
......
......@@ -724,7 +724,6 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
* @memberof MainTreeBase
*/
public computeNodeState(node: any) {
if(Environment.enablePermissionValid){
let targetData: any = this.transformData(node);
if(this.nodeModel && Object.keys(this.nodeModel).length > 0) {
Object.keys(this.nodeModel).forEach((name: any) => {
......@@ -739,8 +738,6 @@ ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
}
})
}
}
}
/**
......
......@@ -739,7 +739,6 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public computeButtonState(data:any){
if(Environment.enablePermissionValid){
let targetData:any = this.transformData(data);
if(this.detailsModel && Object.keys(this.detailsModel).length >0){
Object.keys(this.detailsModel).forEach((name:any) =>{
......@@ -754,7 +753,6 @@ import { Environment } from '@/environments/environment';
})
}
}
}
<#list ctrl.getAllPSDEFormDetails() as formdetail>
<#if formdetail.getDetailType?? && formdetail.getDetailType() == 'BUTTON'>
......
......@@ -547,10 +547,8 @@ import { Environment } from '@/environments/environment';
*/
public getActionState(data:any){
let tempActionModel:any = JSON.parse(JSON.stringify(this.ActionModel));
if(Environment.enablePermissionValid){
let targetData:any = this.transformData(data);
ViewTool.calcActionItemAuthState(targetData,tempActionModel,this.appUIService);
}
return tempActionModel;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册