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

权限过滤调整

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