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

菜单权限修复

上级 01384142
...@@ -507,11 +507,9 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -507,11 +507,9 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public handleMenusResource(inputMenus:Array<any>){ public handleMenusResource(inputMenus:Array<any>){
if(this.$store.getters['authresource/getEnablePermissionValid']){ this.computedEffectiveMenus(inputMenus);
this.computedEffectiveMenus(inputMenus); this.dataProcess(inputMenus);
} this.menus = inputMenus;
this.dataProcess(this.menuMode.getAppMenuItems());
this.menus = this.menuMode.getAppMenuItems();
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
this.doMenuSelect(); this.doMenuSelect();
</#if> </#if>
...@@ -525,7 +523,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -525,7 +523,7 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
*/ */
public computedEffectiveMenus(inputMenus:Array<any>){ public computedEffectiveMenus(inputMenus:Array<any>){
inputMenus.forEach((_item:any) =>{ inputMenus.forEach((_item:any) =>{
if(_item.resourcetag && !this.$store.getters['authresource/getResourceData'](_item.resourcetag)){ if(_item.authtag && !this.$store.getters['authresource/getAuthMenu'](_item)){
_item.hidden = true; _item.hidden = true;
if (_item.items && _item.items.length > 0) { if (_item.items && _item.items.length > 0) {
this.computedEffectiveMenus(_item.items); this.computedEffectiveMenus(_item.items);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册