表单权限调整
This commit is contained in:
parent
fdb9badd88
commit
451a7d4524
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user