From 4c1c61065e20132bb63575b3739d41bfecfe2686 Mon Sep 17 00:00:00 2001 From: dxc Date: Fri, 27 Feb 2026 11:08:00 +0800 Subject: [PATCH] fix: exclude operation columns from field permission dropdown Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) --- inventory-web/src/views/system/PermissionConfig.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-web/src/views/system/PermissionConfig.vue b/inventory-web/src/views/system/PermissionConfig.vue index 207d12b..403a684 100644 --- a/inventory-web/src/views/system/PermissionConfig.vue +++ b/inventory-web/src/views/system/PermissionConfig.vue @@ -224,7 +224,7 @@ const transformData = (nodes: any[]): PermissionNode[] => { const operationCode = opNode ? opNode.code : null // 2. 找普通列 (作为字段权限) - const columns = allChildren.filter((c: any) => c.type === 'element' && c.code !== 'operation' && !c.code.endsWith('_op')) + const columns = allChildren.filter((c: any) => c.type === 'element' && c.code !== 'operation' && !c.code.endsWith('_op') && !c.code.endsWith(':operation')) // 3. 找子菜单 (如果有) const subMenus = allChildren.filter((c: any) => c.type === 'menu')