From 8fd9e43b8ae22e64c62afee56c24df682f8c47c9 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期日, 16 三月 2025 15:57:54 +0800 Subject: [PATCH] 成品下单下载为pdf --- src/views/structural/capabilityAndLaboratory/laboratory/index.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue index fc2642c..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, }, @@ -332,7 +333,7 @@ this.$message.warning('鏆傛棤闄勪欢') return; } - this.$download.downloadFileFromUrl(row.fileUrl, row.fileUrl); + this.$download.saveAs(row.fileUrl, row.fileUrl); }, openAdd() { this.qualificationsConnectVisible = true; @@ -380,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