diff --git a/src/feui/utils/common.js b/src/feui/utils/common.js index c9239e4..0aff521 100644 --- a/src/feui/utils/common.js +++ b/src/feui/utils/common.js @@ -546,8 +546,8 @@ export function permissionUtils (login) { if (login.rolePerm && login.rolePerm.Nav_RolePermForms && login.rolePerm.Nav_RolePermForms.length) { // 只要一个角色有权限就有权限 login.rolePerm.Nav_RolePermForms.forEach((n1, i1) => { if (n1.PermFormId === formId) { - const matchForm = n1.MenuId === currActivatedMenu.ID - if (type == 0 && matchForm) { // 表单权限 + //const matchForm = n1.MenuId === currActivatedMenu.ID + if (type == 0 && true) { // 表单权限 hasPermission = true } else if (type == 1) { // 按钮权限 if (n1.Nav_Btns && n1.Nav_Btns.length) { diff --git a/src/utils/common.js b/src/utils/common.js index 6cba5a7..d074608 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -646,8 +646,8 @@ export function permissionUtils(login) { hasPermission = true } else { if (n1.PermFormId === formId) { - const matchForm = (n1.MenuId === currActivatedMenu.ID || !currActivatedMenu.ID) - if (type == 0 && matchForm) { //表单权限 + //const matchForm = (n1.MenuId === currActivatedMenu.ID || !currActivatedMenu.ID) + if (type == 0 && true) { // hasPermission = true; } else if (type == 1) { //按钮权限 if (n1.Nav_Btns && n1.Nav_Btns.length) {