caipin %!s(int64=4) %!d(string=hai) anos
pai
achega
96b0dd904d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/contract_section_tree_service.go

+ 1 - 1
services/contract_section_tree_service.go

@@ -86,7 +86,7 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
 		return errors.New("未找到合同项目节")
 	}
 	// 1-1 深度为>=2才能新增项目节
-	if sectionFather.Depth < 2 {
+	if sectionFather.Depth < 3 {
 		return errors.New("请在项目节第三层开始编辑")
 	}
 	// 1-2 项目节是否有合同