From e3884ee57f12bb2e884ff625118da364b520e769 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 10 Jan 2021 22:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=94=A8=E6=88=B7=E7=9A=84?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=92=8C=E4=BF=AE=E6=94=B9=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/system/post.js | 10 +- ruoyi-ui/src/api/system/user.js | 2 +- ruoyi-ui/src/utils/dict.js | 1 + ruoyi-ui/src/views/system/user/index.vue | 115 ++--- .../controller/dept/SysDeptController.java | 8 +- .../controller/dept/SysPostController.java | 40 ++ .../controller/user/SysUserController.java | 112 ++--- .../user/vo/user/SysUserCreateReqVO.java | 10 + .../system/convert/dept/SysPostConvert.java | 17 + .../system/convert/user/SysUserConvert.java | 6 + .../dal/mysql/dao/dept/SysPostMapper.java | 19 + .../dal/mysql/dao/user/SysUserMapper.java | 8 + .../dal/mysql/dataobject/dept/SysPostDO.java | 2 +- .../dal/mysql/dataobject/user/SysUserDO.java | 2 +- .../system/enums/SysErrorCodeConstants.java | 19 + .../system/service/dept/SysDeptService.java | 8 + .../system/service/dept/SysPostService.java | 25 ++ .../service/dept/impl/SysDeptServiceImpl.java | 5 + .../service/dept/impl/SysPostServiceImpl.java | 28 ++ .../permission/impl/SysMenuServiceImpl.java | 51 +-- .../system/service/user/SysUserService.java | 21 +- .../service/user/SysUserServiceImpl.java | 419 +++++++----------- 22 files changed, 479 insertions(+), 449 deletions(-) create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/controller/dept/SysPostController.java create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/convert/dept/SysPostConvert.java create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/dal/mysql/dao/dept/SysPostMapper.java create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/service/dept/SysPostService.java create mode 100644 src/main/java/cn/iocoder/dashboard/modules/system/service/dept/impl/SysPostServiceImpl.java diff --git a/ruoyi-ui/src/api/system/post.js b/ruoyi-ui/src/api/system/post.js index fb124d961..7a4faa1cf 100644 --- a/ruoyi-ui/src/api/system/post.js +++ b/ruoyi-ui/src/api/system/post.js @@ -9,6 +9,14 @@ export function listPost(query) { }) } +// 获取岗位精简信息列表 +export function listSimplePosts() { + return request({ + url: '/system/post/list-all-simple', + method: 'get' + }) +} + // 查询岗位详细 export function getPost(postId) { return request({ @@ -50,4 +58,4 @@ export function exportPost(query) { method: 'get', params: query }) -} \ No newline at end of file +} diff --git a/ruoyi-ui/src/api/system/user.js b/ruoyi-ui/src/api/system/user.js index aa92d8b7b..28c8d03b0 100644 --- a/ruoyi-ui/src/api/system/user.js +++ b/ruoyi-ui/src/api/system/user.js @@ -31,7 +31,7 @@ export function addUser(data) { export function updateUser(data) { return request({ url: '/system/user/update', - method: 'put', + method: 'post', data: data }) } diff --git a/ruoyi-ui/src/utils/dict.js b/ruoyi-ui/src/utils/dict.js index 9b482baef..f465106a9 100644 --- a/ruoyi-ui/src/utils/dict.js +++ b/ruoyi-ui/src/utils/dict.js @@ -10,6 +10,7 @@ export const DICT_TYPE = { SYS_MENU_TYPE: 'sys_menu_type', SYS_ROLE_TYPE: 'sys_role_type', SYS_DATA_SCOPE: 'sys_data_scope', + SYS_USER_SEX: 'sys_user_sex', } /** diff --git a/ruoyi-ui/src/views/system/user/index.vue b/ruoyi-ui/src/views/system/user/index.vue index ab05e47ae..3257a4ac0 100644 --- a/ruoyi-ui/src/views/system/user/index.vue +++ b/ruoyi-ui/src/views/system/user/index.vue @@ -188,7 +188,9 @@ - + @@ -221,49 +223,22 @@ - - - - {{dict.dictLabel}} - - - - - - - - - - - - @@ -313,17 +288,45 @@ 取 消 + + + + + + + + + + + + + + + + + + + + + + + + + + + +