wlzboy
6 天以前 09e6dc3fb7266620fafb5e341808a8eb36e080a1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/branch/by-oa',
    method: 'get'
  })
}
 
/**
 * 查询部门详细
 * @param {Number} deptId 部门ID
 */
export function getDept(deptId) {
  return request({
    url: '/system/dept/' + deptId,
    method: 'get'
  })
}