|  |  | 
 |  |  |  | 
 |  |  | // 查询 | 
 |  |  | 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) { |