debug: 诊断出库审批/借库审批的 operationCode 是否被正确识别
This commit is contained in:
@ -391,6 +391,10 @@ const handleClonePermissions = async (sourceRole: string) => {
|
||||
// 递归回显状态
|
||||
const setRowStatus = (rows: PermissionNode[], perms: Set<any>) => {
|
||||
rows.forEach(row => {
|
||||
// ★ 诊断
|
||||
if (row.code === 'outbound_approval' || row.code === 'op_borrow_approval') {
|
||||
console.log('[诊断]', row.code, 'opCode=', row.operationCode, 'children=', row.children)
|
||||
}
|
||||
// 1. 设置可读 (页面Code是否存在)
|
||||
row.hasRead = perms.has(row.code)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user