|
@@ -272,9 +272,9 @@ func (s *contractService) UpdateSerial(sectionData *viewmodels.TreeSectionContra
|
|
|
}
|
|
|
|
|
|
// 1-1 深度为>=1才能新增项目节
|
|
|
- if section.Depth == 0 {
|
|
|
- return errors.New("请在项目节第二层开始编辑")
|
|
|
- }
|
|
|
+ // if section.Depth == 0 {
|
|
|
+ // return errors.New("请在项目节第二层开始编辑")
|
|
|
+ // }
|
|
|
|
|
|
err = s.treeContractDao.UpdateSerial(section, sectionData.Serial, treeType)
|
|
|
if err != nil {
|