| | |
| | | import request from '../../utils/request' |
| | | import { encryptData } from '@/utils/request/decryption.js' |
| | | |
| | | // 查询 |
| | | export function fetchList (data) { |
| | | return request.post('/business/company/page', data, { |
| | | return request.post('/business/company/page', encryptData(data), { |
| | | trim: true |
| | | }) |
| | | } |
| | | export function treeList (data) { |
| | | return request.post('/business/company/tree', data, { |
| | | return request.post('/business/company/tree', encryptData(data), { |
| | | trim: true |
| | | }) |
| | | } |
| | | |
| | | // 导出Excel |
| | | export function exportExcel (data) { |
| | | return request.post('/business/company/exportExcel', data, { |
| | | return request.post('/business/company/exportExcel', encryptData(data), { |
| | | trim: true, |
| | | download: true |
| | | }) |
| | | } |
| | | export function companySync (data) { |
| | | return request.post('/business/company/syncAll', data) |
| | | return request.post('/business/company/syncAll', encryptData(data)) |
| | | } |
| | | // 创建 |
| | | export function create (data) { |
| | | return request.post('/business/company/create', data) |
| | | return request.post('/business/company/create', encryptData(data)) |
| | | } |
| | | |
| | | // 修改 |
| | | export function updateById (data) { |
| | | return request.post('/business/company/updateById', data) |
| | | return request.post('/business/company/updateById', encryptData(data)) |
| | | } |
| | | |
| | | // 删除 |