|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询 | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/business/empower/page', data, { | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/empower/page', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 导出Excel | 
|---|
|  |  |  | export function exportExcel (data) { | 
|---|
|  |  |  | return request.post('/business/empower/exportExcel', data, { | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/empower/exportExcel', data, { | 
|---|
|  |  |  | trim: true, | 
|---|
|  |  |  | download: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 创建 | 
|---|
|  |  |  | export function create (data) { | 
|---|
|  |  |  | return request.post('/business/empower/create', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/empower/create', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 修改 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/business/empower/updateById', data) | 
|---|
|  |  |  | return request.post('/visitsAdmin/cloudService/business/empower/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 删除 | 
|---|
|  |  |  | export function deleteById (id) { | 
|---|
|  |  |  | return request.get(`/business/empower/delete/${id}`) | 
|---|
|  |  |  | return request.get(`/visitsAdmin/cloudService/business/empower/delete/${id}`) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 批量删除 | 
|---|
|  |  |  | export function deleteByIdInBatch (ids) { | 
|---|
|  |  |  | return request.get('/business/empower/delete/batch', { | 
|---|
|  |  |  | return request.get('/visitsAdmin/cloudService/business/empower/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|