import request from '@/utils/request'
|
|
/**
|
* 查询部门列表
|
* @param {Object} query 查询参数
|
*/
|
export function listDept(query) {
|
return request({
|
url: '/system/dept/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
/**
|
* 查询分公司列表(parent_id=100的部门)
|
*/
|
export function listBranchCompany() {
|
return request({
|
url: '/system/dept/list',
|
method: 'get',
|
params: {
|
parentId: 100
|
}
|
})
|
}
|
|
/**
|
* 查询部门详细
|
* @param {Number} deptId 部门ID
|
*/
|
export function getDept(deptId) {
|
return request({
|
url: '/system/dept/' + deptId,
|
method: 'get'
|
})
|
}
|