From 2952cb2c4fd1c51e28c6a6d6728f505155d4ee47 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 21 Aug 2022 22:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=9A=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E5=8C=B9=E9=85=8D=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept.js | 16 ---------------- src/api/system/role.js | 8 ++++++++ src/api/system/user.js | 8 ++++++++ src/views/system/role/index.vue | 11 +++++------ src/views/system/user/index.vue | 20 ++++---------------- 5 files changed, 25 insertions(+), 38 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 0535e8a..9ca6966 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -25,22 +25,6 @@ export function getDept(deptId) { }) } -// 查询部门下拉树结构 -export function treeselect() { - return request({ - url: '/system/dept/treeselect', - method: 'get' - }) -} - -// 根据角色ID查询部门树结构 -export function roleDeptTreeselect(roleId) { - return request({ - url: '/system/dept/roleDeptTreeselect/' + roleId, - method: 'get' - }) -} - // 新增部门 export function addDept(data) { return request({ diff --git a/src/api/system/role.js b/src/api/system/role.js index 7710cc2..528cd18 100644 --- a/src/api/system/role.js +++ b/src/api/system/role.js @@ -109,3 +109,11 @@ export function authUserSelectAll(data) { params: data }) } + +// 根据角色ID查询部门树结构 +export function deptTreeSelect(roleId) { + return request({ + url: '/system/role/deptTree/' + roleId, + method: 'get' + }) +} diff --git a/src/api/system/user.js b/src/api/system/user.js index ad227f9..9b949e9 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -125,3 +125,11 @@ export function updateAuthRole(data) { params: data }) } + +// 查询部门下拉树结构 +export function deptTreeSelect() { + return request({ + url: '/system/user/deptTree', + method: 'get' + }) +} diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index cf71f5c..ee2e11d 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -262,9 +262,8 @@