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