|
@@ -413,6 +413,7 @@ func (s *contractService) makeSectionTreeView(dataList []models.CmTreeContracts)
|
|
|
sectionRoot.Id = id
|
|
|
sectionRoot.Name = "root"
|
|
|
sectionRoot.ParentId = parentId
|
|
|
+ sectionRoot.Children = make([]*viewmodels.TreeSectionContract, 0)
|
|
|
sectionList = append(sectionList, sectionRoot)
|
|
|
for _, data := range dataList {
|
|
|
section := s.makeSectionView(&data)
|
|
@@ -439,7 +440,7 @@ func (s *contractService) makeSectionView(data *models.CmTreeContracts) *viewmod
|
|
|
section.ProjectId = projectId
|
|
|
section.BidsectionId = bidsectionId
|
|
|
section.ContractId = contractId
|
|
|
-
|
|
|
+ section.Children = make([]*viewmodels.TreeSectionContract, 0)
|
|
|
section.ElderBrother = true
|
|
|
section.IsEnd = false
|
|
|
|