From a065ffda76efedc584f0f19ee16e83469cd2c4d4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 16 Aug 2021 17:36:21 +0800 Subject: [PATCH 1/4] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/user/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 1ded283510..36eb05ae1b 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -15,10 +15,10 @@ - - + + - + - + - + From 9439bcef01f0ec9d77ee9688aaca0af7b2eb8025 Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 17 Aug 2021 10:29:06 +0800 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E8=A7=86=E5=9B=BE=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=AE=80=E5=8D=95=E9=A2=9C=E8=89=B2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/components/shape-attr/ColorSelector.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue index ab5a35f136..0ba06b3b66 100644 --- a/frontend/src/views/chart/components/shape-attr/ColorSelector.vue +++ b/frontend/src/views/chart/components/shape-attr/ColorSelector.vue @@ -297,6 +297,7 @@ export default { } .el-radio{ margin:0 2px 0 0!important; + border: 1px solid transparent; } .el-radio>>>.el-radio__label{ padding-left: 0; From d99229dd4402cae22f097814be7b31543afc68a3 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 17 Aug 2021 11:08:11 +0800 Subject: [PATCH 3/4] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E7=BB=84=E7=BB=87=E6=A0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/sys/SysUserController.java | 11 + .../dataease/service/sys/SysRoleService.java | 5 +- frontend/src/api/system/user.js | 11 +- .../src/views/panel/GrantAuth/dept/index.vue | 208 +++++++++++------- .../src/views/panel/GrantAuth/role/index.vue | 2 +- 5 files changed, 158 insertions(+), 79 deletions(-) diff --git a/backend/src/main/java/io/dataease/controller/sys/SysUserController.java b/backend/src/main/java/io/dataease/controller/sys/SysUserController.java index daf98f1796..0a1052f787 100644 --- a/backend/src/main/java/io/dataease/controller/sys/SysUserController.java +++ b/backend/src/main/java/io/dataease/controller/sys/SysUserController.java @@ -5,6 +5,7 @@ import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.github.xiaoymin.knife4j.annotations.ApiSupport; import io.dataease.auth.api.dto.CurrentUserDto; +import io.dataease.base.domain.SysRole; import io.dataease.commons.utils.AuthUtils; import io.dataease.commons.utils.PageUtils; import io.dataease.commons.utils.Pager; @@ -116,4 +117,14 @@ public class SysUserController { public List all(){ return sysRoleService.allRoles(); } + + + + @ApiOperation("查询角色") + @PostMapping("/roleGrid/{goPage}/{pageSize}") + public Pager> roleGrid(@PathVariable int goPage, @PathVariable int pageSize, @RequestBody BaseGridRequest request) { + Page page = PageHelper.startPage(goPage, pageSize, true); + Pager> listPager = PageUtils.setPageInfo(page, sysRoleService.query(request)); + return listPager; + } } diff --git a/backend/src/main/java/io/dataease/service/sys/SysRoleService.java b/backend/src/main/java/io/dataease/service/sys/SysRoleService.java index 558c0b7f96..3747055c9c 100644 --- a/backend/src/main/java/io/dataease/service/sys/SysRoleService.java +++ b/backend/src/main/java/io/dataease/service/sys/SysRoleService.java @@ -5,9 +5,11 @@ package io.dataease.service.sys; import io.dataease.base.domain.SysUsersRolesExample; import io.dataease.base.mapper.SysRoleMapper; import io.dataease.base.mapper.SysUsersRolesMapper;*/ +import io.dataease.base.domain.SysRole; import io.dataease.base.mapper.ext.ExtSysRoleMapper; /*import io.dataease.controller.sys.base.BaseGridRequest; import io.dataease.controller.sys.request.RoleMenusRequest;*/ +import io.dataease.controller.sys.base.BaseGridRequest; import io.dataease.controller.sys.response.RoleUserItem; import org.springframework.stereotype.Service; /*import org.springframework.transaction.annotation.Transactional;*/ @@ -55,12 +57,13 @@ public class SysRoleService { return mapper.deleteByPrimaryKey(roleId); } - + */ public List query(BaseGridRequest request){ List result = extSysRoleMapper.query(request.convertExample()); return result; } + /* public List menuIds(Long roleId){ return extSysRoleMapper.menuIds(roleId); diff --git a/frontend/src/api/system/user.js b/frontend/src/api/system/user.js index f3db990e04..47cfc04581 100644 --- a/frontend/src/api/system/user.js +++ b/frontend/src/api/system/user.js @@ -89,4 +89,13 @@ export const allRoles = () => { }) } -export default { editPassword, delUser, editUser, addUser, userLists, editStatus, persionInfo, updatePerson, updatePersonPwd, allRoles } +export function roleGrid(pageIndex, pageSize, data) { + return request({ + url: '/api/user/roleGrid/' + pageIndex + '/' + pageSize, + method: 'post', + data, + loading: true + }) +} + +export default { editPassword, delUser, editUser, addUser, userLists, editStatus, persionInfo, updatePerson, updatePersonPwd, allRoles, roleGrid } diff --git a/frontend/src/views/panel/GrantAuth/dept/index.vue b/frontend/src/views/panel/GrantAuth/dept/index.vue index 9f2cf29f6b..7221702ea4 100644 --- a/frontend/src/views/panel/GrantAuth/dept/index.vue +++ b/frontend/src/views/panel/GrantAuth/dept/index.vue @@ -1,30 +1,42 @@