From 2badd826f8e96f1b9ed073133bdbb8c75ed02ff7 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 28 七月 2023 11:02:32 +0800
Subject: [PATCH] 提交代码

---
 Source/UBCS-WEB/src/components/file/main.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/file/main.vue b/Source/UBCS-WEB/src/components/file/main.vue
index 2391abf..abf9230 100644
--- a/Source/UBCS-WEB/src/components/file/main.vue
+++ b/Source/UBCS-WEB/src/components/file/main.vue
@@ -65,6 +65,7 @@
 import {mapGetters} from "vuex";
 import {dateFormat} from "@/util/date";
 import {validatenull} from "@/util/validate";
+import func from "@/util/func";
 
 export default {
   props: ["options","visible","ownbizOid"],
@@ -380,16 +381,24 @@
       let data=new FormData();
       if(row && row.oid){
         data.append('fileOids',row.oid)
-        download(data)
+        this.downloadFile(data);
       }else{
         if (this.selectionList.length === 0) {
           this.$message.warning("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
           return;
         }
         data.append('fileOids',this.oids)
-        download(data);
+        this.downloadFile(data);
       }
     },
+    downloadFile(data){
+      download(data).then(res=>{
+        // console.log(res);
+        if(res){
+          func.downloadFileByBlob(res);
+        }
+      });
+    },
     rowDel(row) {
       this.$confirm("纭畾灏嗛�夋嫨鏂囦欢鍒犻櫎?", {
         confirmButtonText: "纭畾",

--
Gitblit v1.9.3