From 5fc8d3401b000652b50b04725c7144ae71b4773b Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 06 三月 2025 10:04:21 +0800
Subject: [PATCH] 实验室资质删除bug

---
 src/api/structural/laboratory.js                                  |    2 +-
 src/views/structural/capabilityAndLaboratory/laboratory/index.vue |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/structural/laboratory.js b/src/api/structural/laboratory.js
index 86ea252..1e2f9b0 100644
--- a/src/api/structural/laboratory.js
+++ b/src/api/structural/laboratory.js
@@ -20,7 +20,7 @@
 export function delCertificationDetail(query) {
   return request({
     url: '/certification/delCertificationDetail',
-    method: 'post',
+    method: 'delete',
     params: query
   })
 }
diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 0c7177f..8ab749f 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("鍒犻櫎鎴愬姛");

--
Gitblit v1.9.3