修改采购件页面金额显示,修改权限管理页面非字段级内容可见与可编辑联动

This commit is contained in:
dxc
2026-02-28 09:10:51 +08:00
parent 281a41c549
commit 8f6d0cd40b
2 changed files with 119 additions and 37 deletions

View File

@ -308,6 +308,11 @@ const handleReadChange = (val: boolean, row: PermissionNode) => {
// 如果开启可读,默认全选字段 (提升体验)
// row.checkedElements = row.elements.map(e => e.code)
// updateCheckAllStatus(row)
// 【新增功能】如果没有字段级控制,且存在操作权限,则自动联动勾选可编辑
if ((!row.elements || row.elements.length === 0) && row.operationCode) {
row.hasWrite = true
}
}
// 联动子菜单:如果父级关闭,子级是否关闭?通常不强制,但可以做
@ -624,4 +629,4 @@ onMounted(() => {
padding: 1px 4px;
border-radius: 3px;
}
</style>
</style>