diff --git a/src/api/dictionary.js b/src/api/dictionary.js index e670f052..ba2e0ab9 100644 --- a/src/api/dictionary.js +++ b/src/api/dictionary.js @@ -220,6 +220,29 @@ export function addOrUpdateSystemDocument(param) { data: param }) } +// 新增/修改通用培训附件 +export function addOrUpdateSystemDocumentAttachment(param) { + return request({ + url: `/SystemDocument/addOrUpdateSystemDocumentAttachment`, + method: 'post', + data: param + }) +} +// 通用培训附件列表 +export function getSystemDocumentAttachmentList(param) { + return request({ + url: `/SystemDocument/getSystemDocumentAttachmentList`, + method: 'post', + data: param + }) +} +// 删除通用培训附件 +export function deleteSystemDocumentAttachment(systemDocumentAttachmentId) { + return request({ + url: `/SystemDocument/deleteSystemDocumentAttachment/${systemDocumentAttachmentId}`, + method: 'delete', + }) +} export function deleteSystemDocument(id) { return request({ diff --git a/src/components/PreviewFile/index.vue b/src/components/PreviewFile/index.vue index d8a7de18..003eac98 100644 --- a/src/components/PreviewFile/index.vue +++ b/src/components/PreviewFile/index.vue @@ -1,28 +1,28 @@