From c391e3e2e7a8814f5d5187d65b412f6fca5d1176 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 15 Apr 2025 10:00:59 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=80=9A=E7=94=A8=E5=9F=B9=E8=AE=AD?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dictionary.js | 23 + .../SignatureTemplate/TemplateForm.vue | 122 +-- .../SignatureTemplate/attachmentForm.vue | 222 ++++++ .../SignatureTemplate/attachmentList.vue | 225 ++++++ .../SignatureTemplate/attachmentPreview.vue | 292 ++++++++ .../SignatureTemplate/image-viewer.vue | 385 ++++++++++ .../components/SignatureTemplate/index.vue | 45 +- .../components/uploadDicomFiles2.vue | 701 +++++------------- 8 files changed, 1416 insertions(+), 599 deletions(-) create mode 100644 src/views/dictionary/attachment/components/SignatureTemplate/attachmentForm.vue create mode 100644 src/views/dictionary/attachment/components/SignatureTemplate/attachmentList.vue create mode 100644 src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue create mode 100644 src/views/dictionary/attachment/components/SignatureTemplate/image-viewer.vue 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/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue b/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue index f93cf82a..8189de54 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue @@ -1,100 +1,45 @@ + + + + Image + + + + + \ No newline at end of file diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue new file mode 100644 index 00000000..c06cafd6 --- /dev/null +++ b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue @@ -0,0 +1,292 @@ + + + + + \ No newline at end of file diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/image-viewer.vue b/src/views/dictionary/attachment/components/SignatureTemplate/image-viewer.vue new file mode 100644 index 00000000..57365dfd --- /dev/null +++ b/src/views/dictionary/attachment/components/SignatureTemplate/image-viewer.vue @@ -0,0 +1,385 @@ +/* eslint-disable no-unused-vars */ + + + + diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue index 14dae0e8..19ae3658 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue @@ -69,12 +69,16 @@ @sort-change="handleSortByColumn"> + sortable="custom" min-width="120px" /> + sortable="custom" min-width="120px" /> + show-overflow-tooltip sortable="custom" min-width="200px" /> + + + sortable="custom" min-width="120px"> + show-overflow-tooltip sortable="custom" min-width="150px"> + + + + sortable="custom" min-width="180px" /> - +