From d2a06b827fdcf4b274c503c25b3c21fd727ccbbc Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 07 三月 2025 10:18:45 +0800
Subject: [PATCH] 文件下载全局修改

---
 src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
index f323f0d..6b7dd89 100644
--- a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
+++ b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue
@@ -169,8 +169,8 @@
             {
               name: "鎵瑰噯",
               type: "text",
-              clickFun: (handleApproval) => {
-                this.handleSubmit(row);
+              clickFun: (row) => {
+                this.handleApproval(row);
               },
               disabled: (row) => {
                 return !row.submitUserName || !!row.ratifyUserName
@@ -393,8 +393,7 @@
       }).catch(err => { });
     },
     handleDown0(row) {
-      let url = this.javaApi + '/word/' + row.url
-      this.$download.saveAs(url, '澶栨潵鏂囦欢纭璁板綍')
+      this.$download.downloadFileFromUrl(row.url, '澶栨潵鏂囦欢纭璁板綍')
     },
     // 鎻愪氦
     handleSubmit(row) {
@@ -410,7 +409,7 @@
             type: 'success',
             message: '鎻愪氦鎴愬姛!'
           });
-          this.refreshTable()()
+          this.refreshTable()
         }).catch(err => { });
       })
     },
@@ -437,7 +436,7 @@
           type: 'success',
           message: '鎿嶄綔鎴愬姛!'
         });
-        this.refreshTable()()
+        this.refreshTable()
         this.lookDialogVisible = false
       }).catch(err => { });
     },

--
Gitblit v1.9.3