表单权限调整

This commit is contained in:
ccy 2025-11-14 14:53:20 +08:00
parent fdb9badd88
commit 451a7d4524
2 changed files with 4 additions and 4 deletions

View File

@ -546,8 +546,8 @@ export function permissionUtils (login) {
if (login.rolePerm && login.rolePerm.Nav_RolePermForms && login.rolePerm.Nav_RolePermForms.length) { // 只要一个角色有权限就有权限 if (login.rolePerm && login.rolePerm.Nav_RolePermForms && login.rolePerm.Nav_RolePermForms.length) { // 只要一个角色有权限就有权限
login.rolePerm.Nav_RolePermForms.forEach((n1, i1) => { login.rolePerm.Nav_RolePermForms.forEach((n1, i1) => {
if (n1.PermFormId === formId) { if (n1.PermFormId === formId) {
const matchForm = n1.MenuId === currActivatedMenu.ID //const matchForm = n1.MenuId === currActivatedMenu.ID
if (type == 0 && matchForm) { // 表单权限 if (type == 0 && true) { // 表单权限
hasPermission = true hasPermission = true
} else if (type == 1) { // 按钮权限 } else if (type == 1) { // 按钮权限
if (n1.Nav_Btns && n1.Nav_Btns.length) { if (n1.Nav_Btns && n1.Nav_Btns.length) {

View File

@ -646,8 +646,8 @@ export function permissionUtils(login) {
hasPermission = true hasPermission = true
} else { } else {
if (n1.PermFormId === formId) { if (n1.PermFormId === formId) {
const matchForm = (n1.MenuId === currActivatedMenu.ID || !currActivatedMenu.ID) //const matchForm = (n1.MenuId === currActivatedMenu.ID || !currActivatedMenu.ID)
if (type == 0 && matchForm) { //表单权限 if (type == 0 && true) { //
hasPermission = true; hasPermission = true;
} else if (type == 1) { //按钮权限 } else if (type == 1) { //按钮权限
if (n1.Nav_Btns && n1.Nav_Btns.length) { if (n1.Nav_Btns && n1.Nav_Btns.length) {