From 1e4d700c9d85f2716e866bde7a9ca5f296f944e4 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 14:36:43 +0800
Subject: [PATCH] 工时管理查询修改

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

diff --git a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
index 8ab749f..4e20b20 100644
--- a/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
+++ b/src/views/structural/capabilityAndLaboratory/laboratory/index.vue
@@ -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.saveAs(row.fileUrl, row.fileUrl);
     },
     openAdd() {
       this.qualificationsConnectVisible = true;
@@ -377,7 +380,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