From 45654a3468d84b88728afe7a9d9c8f1aa5ffa1b8 Mon Sep 17 00:00:00 2001 From: chiyilin <2449182606@qq.com> Date: Fri, 13 Oct 2023 10:06:22 +0800 Subject: [PATCH] 1 --- .../electronicAttachment.js | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/api/ea/electronicAttachment/electronicAttachment.js diff --git a/src/api/ea/electronicAttachment/electronicAttachment.js b/src/api/ea/electronicAttachment/electronicAttachment.js new file mode 100644 index 00000000..34189bf7 --- /dev/null +++ b/src/api/ea/electronicAttachment/electronicAttachment.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建电子档案附件 +export function createElectronicAttachment(data) { + return request({ + url: '/ea/electronic-attachment/create', + method: 'post', + data: data + }) +} + +// 更新电子档案附件 +export function updateElectronicAttachment(data) { + return request({ + url: '/ea/electronic-attachment/update', + method: 'put', + data: data + }) +} + +// 删除电子档案附件 +export function deleteElectronicAttachment(id) { + return request({ + url: '/ea/electronic-attachment/delete?id=' + id, + method: 'delete' + }) +} + +// 获得电子档案附件 +export function getElectronicAttachment(id) { + return request({ + url: '/ea/electronic-attachment/get?id=' + id, + method: 'get' + }) +} + +// 获得电子档案附件分页 +export function getElectronicAttachmentPage(query) { + return request({ + url: '/ea/electronic-attachment/page', + method: 'get', + params: query + }) +} + +// 导出电子档案附件 Excel +export function exportElectronicAttachmentExcel(query) { + return request({ + url: '/ea/electronic-attachment/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +}