|  |  | 
 |  |  |  | 
 |  |  | // 查询 | 
 |  |  | export function fetchList (type) { | 
 |  |  |   return request.get(`/business/company/tree?type=${type}`, { | 
 |  |  |     trim: true | 
 |  |  |   }) | 
 |  |  |   if(type !=null && type != undefined){ | 
 |  |  |     return request.get(`/visitsAdmin/cloudService/business/company/tree?type=${type}`, { | 
 |  |  |       trim: true | 
 |  |  |     }) | 
 |  |  |   }else{ | 
 |  |  |     return request.get(`/visitsAdmin/cloudService/business/company/tree`, { | 
 |  |  |       trim: true | 
 |  |  |     }) | 
 |  |  |   } | 
 |  |  |  | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // export function fetchList (data) { | 
 |  |  | 
 |  |  |  | 
 |  |  | // 创建 | 
 |  |  | export function create (data) { | 
 |  |  |   return request.post('/business/company/create', data) | 
 |  |  |   return request.post('/visitsAdmin/cloudService/business/company/create', data) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 修改 | 
 |  |  | export function updateById (data) { | 
 |  |  |   return request.post('/business/company/updateById', data) | 
 |  |  |   return request.post('/visitsAdmin/cloudService/business/company/updateById', data) | 
 |  |  | } | 
 |  |  | export function sort (data) { | 
 |  |  |   return request.post('/visitsAdmin/cloudService/business/company/updateSort', data) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 部门信息同步 | 
 |  |  | export function companySync (data) { | 
 |  |  |   return request.post('/business/company/sync', data) | 
 |  |  |   return request.post('/visitsAdmin/cloudService/business/company/syncAll', data) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 删除 | 
 |  |  | export function deleteById (id) { | 
 |  |  |   return request.get(`/business/company/delete/${id}`) | 
 |  |  |   return request.get(`/visitsAdmin/cloudService/business/company/delete/${id}`) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 根据类型查询组织信息 | 
 |  |  | export function findCompanyTreePage (type) { | 
 |  |  |   return request.get(`/business/company/findCompanyTreePage?type=${type}`) | 
 |  |  |   return request.get(`/visitsAdmin/cloudService/business/company/findCompanyTreePage?type=${type}`) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 批量删除 | 
 |  |  | export function deleteByIdInBatch (ids) { | 
 |  |  |   return request.get('/business/company/delete/batch', { | 
 |  |  |   return request.get('/visitsAdmin/cloudService/business/company/delete/batch', { | 
 |  |  |     params: { | 
 |  |  |       ids | 
 |  |  |     } |