wlzboy
2025-10-26 2c86a8bd60deed0dd0e044bad6fb83f75d19a332
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
35
36
37
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'
  })
}