diff --git a/backend/src/main/java/io/dataease/service/sys/DeptService.java b/backend/src/main/java/io/dataease/service/sys/DeptService.java index 101533d193..290d3468af 100644 --- a/backend/src/main/java/io/dataease/service/sys/DeptService.java +++ b/backend/src/main/java/io/dataease/service/sys/DeptService.java @@ -162,7 +162,7 @@ public class DeptService { * @return */ private List upTree(List allNodes, List targetNodes){ - final Map map = targetNodes.stream().collect(Collectors.toMap(SimpleTreeNode::getId, node -> node)); + final Map map = allNodes.stream().collect(Collectors.toMap(SimpleTreeNode::getId, node -> node)); List results = targetNodes.parallelStream().flatMap(targetNode -> { //向上逐级找爹 List ids = new ArrayList<>(); diff --git a/frontend/src/views/system/dept/index.vue b/frontend/src/views/system/dept/index.vue index 1dcac01e5c..2e9b5d8cc9 100644 --- a/frontend/src/views/system/dept/index.vue +++ b/frontend/src/views/system/dept/index.vue @@ -4,7 +4,7 @@ @@ -22,7 +23,7 @@ - +