|  |  | 
 |  |  |  | 
 |  |  | // 查询 | 
 |  |  | export function fetchList (type) { | 
 |  |  |   return request.get(`/visitsAdmin/cloudService/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 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('/visitsAdmin/cloudService/business/company/syncAll', data) | 
 |  |  | } | 
 |  |  | // 分页查询 | 
 |  |  | export function companyGetList (data) { | 
 |  |  |   return request.post('/visitsAdmin/cloudService/business/company/page', data) | 
 |  |  | } | 
 |  |  |  | 
 |  |  | // 删除 | 
 |  |  | export function deleteById (id) { |