caipin 4 years atrás
parent
commit
96b0dd904d
1 changed files with 1 additions and 1 deletions
  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 项目节是否有合同