|
@@ -249,6 +249,7 @@ func getChartPermissionTree(rootMap map[int]*models.ChartPermission, childChartP
|
|
|
ChartPermissionId: v.ChartPermissionId,
|
|
|
PermissionName: v.PermissionName,
|
|
|
IsPublic: v.IsPublic,
|
|
|
+ ParentId: v.ParentId,
|
|
|
Sort: v.Sort,
|
|
|
})
|
|
|
} else {
|
|
@@ -256,14 +257,16 @@ func getChartPermissionTree(rootMap map[int]*models.ChartPermission, childChartP
|
|
|
resultMap[v.ParentId] = &models.ChartPermissionView{
|
|
|
ChartPermissionId: root.ChartPermissionId,
|
|
|
PermissionName: root.PermissionName,
|
|
|
- IsPublic: 0,
|
|
|
+ IsPublic: root.IsPublic,
|
|
|
Sort: root.Sort,
|
|
|
+ ParentId: root.ParentId,
|
|
|
Child: make([]*models.ChartPermissionView, 0),
|
|
|
}
|
|
|
resultMap[v.ParentId].Child = append(resultMap[v.ParentId].Child, &models.ChartPermissionView{
|
|
|
ChartPermissionId: v.ChartPermissionId,
|
|
|
PermissionName: v.PermissionName,
|
|
|
IsPublic: v.IsPublic,
|
|
|
+ ParentId: v.ParentId,
|
|
|
Sort: v.Sort,
|
|
|
})
|
|
|
} else {
|