From b970185536bc58742fc29946b50c487a2de52bac Mon Sep 17 00:00:00 2001
From: kknd97 <liujingwei@ln.chinamobile.com>
Date: 星期四, 20 十月 2022 14:27:02 +0800
Subject: [PATCH] update ruoyi-ui/src/views/system/user/index.vue. handleUpdate(row)方法中:this.form = response.data;语句 会导致【this.form.postIds = response.postIds;】和【this.form.roleIds = response.roleIds;】失效。 导致用户编辑对话框中,角色和部门多选框无法正常修改。 建议使用以下语句修改: this.$set(this.form, "postIds", response.postIds); this.$set(this.form, "roleIds", response.roleIds);

---
 ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
index 9190c9e..c86acea 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysUserMapper.java
@@ -20,7 +20,7 @@
     public List<SysUser> selectUserList(SysUser sysUser);
 
     /**
-     * 鏍规嵁鏉′欢鍒嗛〉鏌ヨ鏈凡閰嶇敤鎴疯鑹插垪琛�
+     * 鏍规嵁鏉′欢鍒嗛〉鏌ヨ宸查厤鐢ㄦ埛瑙掕壊鍒楄〃
      * 
      * @param user 鐢ㄦ埛淇℃伅
      * @return 鐢ㄦ埛淇℃伅闆嗗悎淇℃伅
@@ -107,7 +107,7 @@
      * @param userName 鐢ㄦ埛鍚嶇О
      * @return 缁撴灉
      */
-    public int checkUserNameUnique(String userName);
+    public SysUser checkUserNameUnique(String userName);
 
     /**
      * 鏍¢獙鎵嬫満鍙风爜鏄惁鍞竴

--
Gitblit v1.9.3