|
@@ -108,7 +108,7 @@ func (s *contractService) SectionAdd(sectionData *viewmodels.TreeSectionContract
|
|
|
code := fmt.Sprintf("%s%d", attribution, serial)
|
|
|
// 新增项目节
|
|
|
sectionCM := &models.CmTreeContracts{}
|
|
|
- sectionCM.TreeId = treeType
|
|
|
+ sectionCM.TreeType = treeType
|
|
|
sectionCM.ParentId = sectionFather.TreeId
|
|
|
sectionCM.Name = sectionData.Name
|
|
|
sectionCM.Depth = sectionFather.Depth + 1
|