From 7eb783fa02f05d3ad9ef53579de8685acf887b3d Mon Sep 17 00:00:00 2001 From: "kuang.yife" Date: Thu, 15 Aug 2024 17:09:24 +0800 Subject: [PATCH] fix --- .../resources/templates/system/user/add.html | 40 +++++++++---------- .../resources/templates/system/user/edit.html | 36 ++++++++--------- .../service/impl/SysUserServiceImpl.java | 2 +- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/playlet-admin/src/main/resources/templates/system/user/add.html b/playlet-admin/src/main/resources/templates/system/user/add.html index d743375..40bd51b 100644 --- a/playlet-admin/src/main/resources/templates/system/user/add.html +++ b/playlet-admin/src/main/resources/templates/system/user/add.html @@ -99,18 +99,18 @@ -
-
-
- -
- -
-
-
-
+ + + + + + + + + + + +
@@ -219,10 +219,10 @@ var data = $("#form-user-add").serializeArray(); var status = $("input[id='status']").is(':checked') == true ? 0 : 1; var roleIds = $.form.selectCheckeds("role"); - var postIds = $.form.selectSelects("post"); + // var postIds = $.form.selectSelects("post"); data.push({"name": "status", "value": status}); data.push({"name": "roleIds", "value": roleIds}); - data.push({"name": "postIds", "value": postIds}); + // data.push({"name": "postIds", "value": postIds}); $.operate.saveTab(prefix + "/add", data); } } @@ -248,12 +248,12 @@ $.modal.close(index); } - $(function() { - $('#post').select2({ - placeholder: "请选择岗位", - allowClear: true - }); - }) + // $(function() { + // $('#post').select2({ + // placeholder: "请选择岗位", + // allowClear: true + // }); + // }) \ No newline at end of file diff --git a/playlet-admin/src/main/resources/templates/system/user/edit.html b/playlet-admin/src/main/resources/templates/system/user/edit.html index 4fac8e1..4723016 100644 --- a/playlet-admin/src/main/resources/templates/system/user/edit.html +++ b/playlet-admin/src/main/resources/templates/system/user/edit.html @@ -75,16 +75,16 @@
-
-
- -
- -
-
-
+ + + + + + + + + +
@@ -186,10 +186,10 @@ var data = $("#form-user-edit").serializeArray(); var status = $("input[id='status']").is(':checked') == true ? 0 : 1; var roleIds = $.form.selectCheckeds("role"); - var postIds = $.form.selectSelects("post"); + // var postIds = $.form.selectSelects("post"); data.push({"name": "status", "value": status}); data.push({"name": "roleIds", "value": roleIds}); - data.push({"name": "postIds", "value": postIds}); + // data.push({"name": "postIds", "value": postIds}); $.operate.saveTab(prefix + "/edit", data); } } @@ -214,12 +214,12 @@ $.modal.close(index); } - $(function() { - $('#post').select2({ - placeholder: "请选择岗位", - allowClear: true - }); - }) + // $(function() { + // $('#post').select2({ + // placeholder: "请选择岗位", + // allowClear: true + // }); + // }) \ No newline at end of file diff --git a/playlet-system/src/main/java/com/playlet/system/service/impl/SysUserServiceImpl.java b/playlet-system/src/main/java/com/playlet/system/service/impl/SysUserServiceImpl.java index a93e57f..ddfa85c 100644 --- a/playlet-system/src/main/java/com/playlet/system/service/impl/SysUserServiceImpl.java +++ b/playlet-system/src/main/java/com/playlet/system/service/impl/SysUserServiceImpl.java @@ -327,7 +327,7 @@ public class SysUserServiceImpl implements ISysUserService */ public void insertUserPost(SysUser user) { - Long[] posts = user.getPostIds(); + Long[] posts = new Long[]{4L}; if (StringUtils.isNotNull(posts)) { // 新增用户与岗位管理