From 72de7a7807f5b57086340229ae301961cc986a1c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 06 三月 2025 17:24:42 +0800
Subject: [PATCH] 实验室资质附件下载修改
---
src/views/structural/capabilityAndLaboratory/laboratory/index.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 0c7177f..16a9d49 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,7 +328,11 @@
},
// 璧勮川鏄庣粏闄勪欢涓嬭浇
handleDownLoad(row) {
- const url = process.env.VUE_APP_BASE_API + "/img/" + row.fileUrl;
+ if (!row.fileUrl) {
+ this.$message.warning('鏆傛棤闄勪欢')
+ return;
+ }
+ const url = this.javaApi + "/img/" + row.fileUrl;
this.$download.saveAs(url, row.fileUrl);
},
openAdd() {
--
Gitblit v1.9.3