feat(部门): 添加获取部门及其子部门列表的接口
在leave.vue和goout.vue中使用新接口listDeptWithChildren替换原有的listDept
This commit is contained in:
@@ -58,3 +58,13 @@ export function treeselect() {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function listDeptWithChildren(deptId) {
|
||||
if (!deptId) {
|
||||
return Promise.reject(new Error('deptId is required'))
|
||||
}
|
||||
return request({
|
||||
url: '/system/dept/list/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user