| 对比新文件 | 
|  |  |  | 
|---|
|  |  |  | import request from '../../utils/request' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鏌ヨ | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/business/baseData/page', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 瀵煎嚭Excel | 
|---|
|  |  |  | export function exportExcel (data) { | 
|---|
|  |  |  | return request.post('/business/baseData/exportExcel', data, { | 
|---|
|  |  |  | trim: true, | 
|---|
|  |  |  | download: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鍒涘缓 | 
|---|
|  |  |  | export function create (data) { | 
|---|
|  |  |  | return request.post('/business/baseData/create', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 淇敼 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/business/baseData/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鍒犻櫎 | 
|---|
|  |  |  | export function deleteById (id) { | 
|---|
|  |  |  | return request.get(`/business/baseData/delete/${id}`) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鎵归噺鍒犻櫎 | 
|---|
|  |  |  | export function deleteByIdInBatch (ids) { | 
|---|
|  |  |  | return request.get('/business/baseData/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|