fix: exclude operation columns from field permission dropdown
Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
@ -224,7 +224,7 @@ const transformData = (nodes: any[]): PermissionNode[] => {
|
|||||||
const operationCode = opNode ? opNode.code : null
|
const operationCode = opNode ? opNode.code : null
|
||||||
|
|
||||||
// 2. 找普通列 (作为字段权限)
|
// 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. 找子菜单 (如果有)
|
// 3. 找子菜单 (如果有)
|
||||||
const subMenus = allChildren.filter((c: any) => c.type === 'menu')
|
const subMenus = allChildren.filter((c: any) => c.type === 'menu')
|
||||||
|
|||||||
Reference in New Issue
Block a user