debug: 诊断出库审批/借库审批的 operationCode 是否被正确识别

This commit is contained in:
yueli
2026-07-21 10:19:21 +08:00
parent d7d7d65a4f
commit 9ceb6ddc1d

View File

@ -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)