Commit dec38835 authored by 黄奎's avatar 黄奎

页面修改

parent 1c824475
......@@ -200,7 +200,11 @@ namespace Edu.Module.User
}
}
#endregion
tModel.ChildList = GetDeptTreeList(fItem.DeptId, deptList, empList: empList);
var childList = GetDeptTreeList(fItem.DeptId, deptList, empList: empList);
if (childList != null && childList.Count > 0)
{
tModel.ChildList.AddRange(childList);
}
list.Add(tModel);
}
}
......@@ -251,7 +255,11 @@ namespace Edu.Module.User
}
}
#endregion
model.ChildList = GetDeptTreeList(item.DeptId, sourceList);
var childList= GetDeptTreeList(item.DeptId, sourceList);
if (childList != null && childList.Count > 0)
{
model.ChildList.AddRange(childList);
}
treeList.Add(model);
}
return treeList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment