From 0a26d58a3906b9e13946c7cb46fae51a0de98920 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期一, 17 三月 2025 15:49:08 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/structural/capabilityAndLaboratory/laboratory/index.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 0c7177f..ef5109e 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -151,6 +151,7 @@
 import { getToken } from "@/utils/auth";
 
 export default {
+  name: 'Laboratory',
   components: {
     limsTable,
   },
@@ -320,7 +321,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 +329,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.saveAs(row.fileUrl, row.fileUrl);
     },
     openAdd() {
       this.qualificationsConnectVisible = true;
@@ -377,7 +381,6 @@
           addCertificationDetail({ ...this.formData })
             .then((res) => {
               this.loading = false;
-              if (res.code === 201) return;
               this.$message.success("宸叉彁浜�");
               this.refreshTable();
               this.resetForm("formDataRef");

--
Gitblit v1.9.3