caipin 1 ano atrás
pai
commit
c7f49b0ed7
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      services/contract_section_tree_service.go

+ 4 - 4
services/contract_section_tree_service.go

@@ -238,10 +238,10 @@ func (s *contractService) SectionSave(sectionData *viewmodels.TreeSectionContrac
 		return nil
 	}
 
-	// 1-1 深度为>=1才能新增项目节
-	if section.Depth == 0 {
-		return errors.New("请在项目节第二层开始编辑")
-	}
+	// 1-1 深度为>=1才能新增项目节 -第一层也允许编辑名称
+	// if section.Depth == 0 {
+	// 	return errors.New("请在项目节第二层开始编辑")
+	// }
 
 	// 2.保存
 	sectionCM := &models.CmTreeContracts{}