feat(部门): 添加获取部门及其子部门列表的接口

在leave.vue和goout.vue中使用新接口listDeptWithChildren替换原有的listDept
This commit is contained in:
砂糖
2026-01-27 10:23:06 +08:00
parent fb203d7eb8
commit 0fb7aebf67
3 changed files with 14 additions and 4 deletions

View File

@@ -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'
})
}