diff --git a/src/api/attachment.js b/src/api/attachment.js index 6d40ba6a..369a2964 100644 --- a/src/api/attachment.js +++ b/src/api/attachment.js @@ -27,6 +27,14 @@ attachmentApi.delete = attachmentId => { }) } +attachmentApi.update = (attachmentId, attachment) => { + return service({ + url: `${baseUrl}/${attachmentId}`, + method: 'put', + data: attachment + }) +} + attachmentApi.CancelToken = axios.CancelToken attachmentApi.isCancel = axios.isCancel diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 61b3a8ac..3d89c57b 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -41,6 +41,7 @@ + { diff --git a/src/views/attachment/components/AttachmentDetailDrawer.vue b/src/views/attachment/components/AttachmentDetailDrawer.vue index ed511fd0..c581df3f 100644 --- a/src/views/attachment/components/AttachmentDetailDrawer.vue +++ b/src/views/attachment/components/AttachmentDetailDrawer.vue @@ -7,50 +7,27 @@ destroyOnClose @close="onClose" > - + - +
- + - + -