From 89fd9ab312c0aef9fcab89fbbaee4add5baa7c57 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期二, 27 十月 2026 09:43:22 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/Attachment/lims-attachment.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/Attachment/lims-attachment.vue b/src/components/Attachment/lims-attachment.vue
index 62ae50d..ae6a8b0 100644
--- a/src/components/Attachment/lims-attachment.vue
+++ b/src/components/Attachment/lims-attachment.vue
@@ -60,6 +60,7 @@
 
 <script>
 import request from '@/utils/request'
+import { resolveAttachmentUrl } from '@/utils/attachment'
 import filePreview from '@/components/Preview/filePreview.vue'
 
 /**
@@ -298,7 +299,7 @@
       this.previewVisible = true
     },
     downloadFile(row) {
-      this.$download.saveAs(this.fullUrl(row.fileUrl), row.fileName)
+      return this.$download.attachment(row, row.fileName)
     },
     removeFile(row) {
       this.$confirm('鏄惁鍒犻櫎璇ラ檮浠讹紵', '鎻愮ず', { type: 'warning' }).then(() => {
@@ -314,8 +315,7 @@
     },
     // 闈欐�佸湴鍧�鎷兼帴锛屼笌鍚庣涓婁紶缁熶竴璺敱淇濇寔涓�鑷达細鍥剧墖鍦� /img锛屽叾瀹冮兘鍦� /word
     fullUrl(fileUrl) {
-      const base = /\.(jpg|jpeg|png|gif)$/i.test(fileUrl) ? '/img/' : '/word/'
-      return this.javaApi + base + fileUrl
+      return resolveAttachmentUrl(fileUrl)
     }
   }
 }

--
Gitblit v1.9.3