完成部门模块的迁移

This commit is contained in:
YunaiV
2021-01-11 21:09:35 +08:00
parent 7f171d14a4
commit e4fd022ce1
25 changed files with 316 additions and 1245 deletions

View File

@ -20,7 +20,7 @@ export function listDeptExcludeChild(deptId) {
// 查询部门详细
export function getDept(deptId) {
return request({
url: '/system/dept/' + deptId,
url: '/system/dept/get?id=' + deptId,
method: 'get'
})
}
@ -36,7 +36,7 @@ export function listSimpleDepts() {
// 新增部门
export function addDept(data) {
return request({
url: '/system/dept',
url: '/system/dept/create',
method: 'post',
data: data
})
@ -45,19 +45,16 @@ export function addDept(data) {
// 修改部门
export function updateDept(data) {
return request({
url: '/system/dept',
method: 'put',
url: '/system/dept/update',
method: 'post',
data: data
})
}
// 删除部门
export function delDept(deptId) {
export function delDept(id) {
return request({
url: '/system/dept/' + deptId,
method: 'delete'
url: '/system/dept/delete?id=' + id,
method: 'post'
})
}
export class treeselect {
}