From 602d84758d7c0674bcacf89b4de5cbb964d98c41 Mon Sep 17 00:00:00 2001 From: zds <2388969634@qq.com> Date: Thu, 29 Aug 2024 19:04:50 +0800 Subject: [PATCH] =?UTF-8?q?opt=EF=BC=9A=E4=BC=98=E5=8C=96=E5=89=8D?= =?UTF-8?q?=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/role/impl/SysRoleServiceImpl.java | 4 +- .../user/dialog/relevanceDeptDialog.vue | 3 +- .../user/dialog/relevanceUserDialog.vue | 3 +- .../src/views/system/user/index.vue | 8 +--- .../src/views/wms/sch/point/index.vue | 37 +++---------------- 5 files changed, 12 insertions(+), 43 deletions(-) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/role/impl/SysRoleServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/role/impl/SysRoleServiceImpl.java index a750adb..7dbc683 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/role/impl/SysRoleServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/system/service/role/impl/SysRoleServiceImpl.java @@ -130,8 +130,8 @@ public class SysRoleServiceImpl extends ServiceImpl impl public List getPermissionList(JSONObject userDto) { List permission = new LinkedList<>(); // 查看是否为管理员 - String username = userDto.getString("username"); - if("admin".equals(username)){ + Boolean is_admin = userDto.getBoolean("is_admin"); + if(is_admin){ permission.add("admin"); } permission.addAll(sysMenuMapper.getPermissionByUserId(userDto.getString("user_id"))); diff --git a/lms/nladmin-ui/src/views/system/user/dialog/relevanceDeptDialog.vue b/lms/nladmin-ui/src/views/system/user/dialog/relevanceDeptDialog.vue index 8ece6df..64aea5a 100644 --- a/lms/nladmin-ui/src/views/system/user/dialog/relevanceDeptDialog.vue +++ b/lms/nladmin-ui/src/views/system/user/dialog/relevanceDeptDialog.vue @@ -119,7 +119,7 @@ export default { this.$nextTick(function() { for (var k = 0; k < this.depts.length; k++) { for (var i = 0; i < this.crud.data.length; i++) { - if (this.crud.data[i].deptId == this.depts[k].deptId) { + if (this.crud.data[i].dept_id == this.depts[k]) { this.$refs.table.toggleRowSelection(this.crud.data[i], true) break } @@ -157,7 +157,6 @@ export default { this.crud.resetQuery(false) this.$emit('update:dialogShow', false) this.$emit('selectDepts', this.rows) - // console.log(this.rows) }, getDeptDatas(tree, treeNode, resolve) { const params = { pid: tree.deptId } diff --git a/lms/nladmin-ui/src/views/system/user/dialog/relevanceUserDialog.vue b/lms/nladmin-ui/src/views/system/user/dialog/relevanceUserDialog.vue index e5e1df6..5a2a9d9 100644 --- a/lms/nladmin-ui/src/views/system/user/dialog/relevanceUserDialog.vue +++ b/lms/nladmin-ui/src/views/system/user/dialog/relevanceUserDialog.vue @@ -118,10 +118,9 @@ export default { }, open() { this.$nextTick(function() { - console.log(this.crud.data) for (var k = 0; k < this.users.length; k++) { for (var i = 0; i < this.crud.data.length; i++) { - if (this.crud.data[i].userId == this.users[k].userId) { + if (this.crud.data[i].user_id == this.users[k].user_id) { this.$refs.table.toggleRowSelection(this.crud.data[i], true) break } diff --git a/lms/nladmin-ui/src/views/system/user/index.vue b/lms/nladmin-ui/src/views/system/user/index.vue index 647b879..11a08f1 100644 --- a/lms/nladmin-ui/src/views/system/user/index.vue +++ b/lms/nladmin-ui/src/views/system/user/index.vue @@ -174,7 +174,7 @@