MrShi
2023-12-20 d8e493052309db7180c3ee5d3ec9e01b78e12bdc
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
38
39
40
41
42
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/business/company/page', data, {
    trim: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/business/company/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/business/company/updateById', data)
}
 
// 部门信息同步
export function companySync (data) {
  return request.post('/business/company/sync', data)
}
 
// 删除
export function deleteById (id) {
  return request.get(`/business/company/delete/${id}`)
}
 
// 根据类型查询组织信息
export function findCompanyTreePage (type) {
  return request.get(`/business/company/findCompanyTreePage?type=${type}`)
}
 
// 批量删除
export function deleteByIdInBatch (ids) {
  return request.get('/business/company/delete/batch', {
    params: {
      ids
    }
  })
}