diff --git a/src/api/archives/packages.js b/src/api/archives/packages.js new file mode 100644 index 00000000..8f67a1bc --- /dev/null +++ b/src/api/archives/packages.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建装册 +export function createPackages(data) { + return request({ + url: '/archives/packages/create', + method: 'post', + data: data + }) +} + +// 更新装册 +export function updatePackages(data) { + return request({ + url: '/archives/packages/update', + method: 'put', + data: data + }) +} + +// 删除装册 +export function deletePackages(id) { + return request({ + url: '/archives/packages/delete?id=' + id, + method: 'delete' + }) +} + +// 获得装册 +export function getPackages(id) { + return request({ + url: '/archives/packages/get?id=' + id, + method: 'get' + }) +} + +// 获得装册分页 +export function getPackagesPage(query) { + return request({ + url: '/archives/packages/page', + method: 'get', + params: query + }) +} + +// 导出装册 Excel +export function exportPackagesExcel(query) { + return request({ + url: '/archives/packages/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/archives/packages/index.vue b/src/views/archives/packages/index.vue new file mode 100644 index 00000000..5c5db24d --- /dev/null +++ b/src/views/archives/packages/index.vue @@ -0,0 +1,420 @@ + + +