Fix 禅道 108 系统管理-》业务规则配置-》执行科室配置:【添加新项目】按钮无法操作

This commit is contained in:
2026-01-20 17:12:26 +08:00
parent bc92b9aa62
commit f6403fa059

View File

@@ -427,11 +427,7 @@ function handleNodeClick(res, node) {
// 实际的节点点击处理逻辑 // 实际的节点点击处理逻辑
function continueHandleNodeClick(node) { function continueHandleNodeClick(node) {
// 新增按钮是否 disable // 新增按钮是否 disable
if (node.parent === null || node.level === 1) { isAddDisable.value = false;
isAddDisable.value = true;
} else {
isAddDisable.value = false;
}
// 检查节点是否有子节点 // 检查节点是否有子节点
if (node.data.children && node.data.children.length > 0) { if (node.data.children && node.data.children.length > 0) {
// proxy.$message.warning("不能选择父节点"); // proxy.$message.warning("不能选择父节点");