From d2a06b827fdcf4b274c503c25b3c21fd727ccbbc Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 10:18:45 +0800
Subject: [PATCH] 文件下载全局修改

---
 src/views/structural/capabilityAndLaboratory/laboratory/index.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 0c7177f..fc2642c 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -320,7 +320,7 @@
       this.selection.forEach((item) => {
         delIds.push(item.id);
       });
-      delCertificationDetail(delIds).then((res) => {
+      delCertificationDetail({ ids: delIds.join(',') }).then((res) => {
         if (res.code !== 200) return;
         this.refreshTable();
         this.$message.success("鍒犻櫎鎴愬姛");
@@ -328,8 +328,11 @@
     },
     // 璧勮川鏄庣粏闄勪欢涓嬭浇
     handleDownLoad(row) {
-      const url = process.env.VUE_APP_BASE_API + "/img/" + row.fileUrl;
-      this.$download.saveAs(url, row.fileUrl);
+      if (!row.fileUrl) {
+        this.$message.warning('鏆傛棤闄勪欢')
+        return;
+      }
+      this.$download.downloadFileFromUrl(row.fileUrl, row.fileUrl);
     },
     openAdd() {
       this.qualificationsConnectVisible = true;

--
Gitblit v1.9.3