|
@@ -4310,7 +4310,7 @@ func (this *EdbInfoController) EdbChartAdminList() {
|
|
|
|
|
|
for _, admin := range systemAdminList {
|
|
|
for i, v := range depList {
|
|
|
- for _, group := range v.ChildrenList {
|
|
|
+ for k, group := range v.ChildrenList {
|
|
|
if admin.GroupName == group.RealName {
|
|
|
item := &company.DepartmentGroupAdmins{
|
|
|
AdminId: strconv.Itoa(admin.AdminId),
|
|
@@ -4319,7 +4319,7 @@ func (this *EdbInfoController) EdbChartAdminList() {
|
|
|
Authority: admin.Authority,
|
|
|
}
|
|
|
if group.RealName != "" {
|
|
|
- group.ChildrenList = append(group.ChildrenList, item)
|
|
|
+ depList[i].ChildrenList[k].ChildrenList = append(depList[i].ChildrenList[k].ChildrenList, item)
|
|
|
} else {
|
|
|
depList[i].ChildrenList = append(depList[i].ChildrenList, item)
|
|
|
}
|