diff --git a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/service/impl/DeptServiceImpl.java b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/service/impl/DeptServiceImpl.java index 6ffeade..f11973e 100644 --- a/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/service/impl/DeptServiceImpl.java +++ b/nladmin-system/nlsso-server/src/main/java/org/nl/modules/system/service/impl/DeptServiceImpl.java @@ -72,6 +72,7 @@ public class DeptServiceImpl implements DeptService { , "endTime", MapUtil.getStr(o, "endTime") , "pid", MapUtil.getStr(o, "pid") , "pidIsNull", MapUtil.getStr(o, "pidIsNull") + ,"flag","1" ); JSONArray array = WQL.getWO("SYS_DEPT").addParamMap(map).process().getResultJSONArray(0); return array.toJavaList(Dept.class); @@ -82,7 +83,7 @@ public class DeptServiceImpl implements DeptService { if (id==null){ return null; } - JSONObject result = WQLObject.getWQLObject("sys_dept").query("dept_id ='" + id + "'").uniqueResult(0); + JSONObject result = WQLObject.getWQLObject("SYS_DEPT").query("dept_id ='" + id + "'").uniqueResult(0); return result.toJavaObject(tagert); } diff --git a/nladmin-ui/src/views/system/user/index.vue b/nladmin-ui/src/views/system/user/index.vue index 4c3ad0f..f33a8ad 100644 --- a/nladmin-ui/src/views/system/user/index.vue +++ b/nladmin-ui/src/views/system/user/index.vue @@ -74,8 +74,8 @@ - - + + @@ -100,7 +100,7 @@ - + { + getDepts({ is_used: 1 }).then(res => { console.log('获取的部门信息', res) this.depts = res.content.map(function(obj) { if (obj.hasChildren) { @@ -394,7 +394,7 @@ export default { // 获取弹窗内部门数据 loadDepts({ action, parentNode, callback }) { if (action === LOAD_CHILDREN_OPTIONS) { - getDepts({ enabled: true, pid: parentNode.id }).then(res => { + getDepts({ is_used: 1, pid: parentNode.id }).then(res => { parentNode.children = res.content.map(function(obj) { if (obj.hasChildren) { obj.children = null