部门管理:增删改查、用户部门显示

This commit is contained in:
陈淳
2022-09-13 17:50:20 +08:00
parent 7b6d8671cf
commit 5b1ad450d3
9 changed files with 63 additions and 54 deletions

View File

@@ -3,19 +3,19 @@ import request from '@/utils/request'
// 查询部门列表
export function listDept(query) {
return request({
url: '/dept/pageList',
url: '/dept/SelctGetList',
method: 'get',
params: query
})
}
// 查询部门列表(排除节点)
export function listDeptExcludeChild(deptId) {
return request({
url: '/system/dept/list/exclude/' + deptId,
method: 'get'
})
}
// // 查询部门列表(排除节点)
// export function listDeptExcludeChild(deptId) {
// return request({
// url: '/system/dept/list/exclude/' + deptId,
// method: 'get'
// })
// }
// 查询部门详细
export function getDept(deptId) {
@@ -52,6 +52,6 @@ export function delDept(deptId) {
return request({
url: '/dept/delList',
method: 'delete',
data:postId
data:deptId
})
}

View File

@@ -128,10 +128,10 @@ export function updateAuthRole(data) {
})
}
// 查询部门下拉树结构
export function deptTreeSelect() {
return request({
url: '/system/user/deptTree',
method: 'get'
})
}
// // 查询部门下拉树结构
// export function deptTreeSelect() {
// return request({
// url: '/system/user/deptTree',
// method: 'get'
// })
// }