From 0aa0bbdfde221a46019f90a245e40d6b57fd251b Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 11 七月 2023 19:09:03 +0800
Subject: [PATCH] 编码规则bug修复

---
 Source/UBCS-WEB/src/components/file/main.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/file/main.vue b/Source/UBCS-WEB/src/components/file/main.vue
index 9e5a099..cfbd438 100644
--- a/Source/UBCS-WEB/src/components/file/main.vue
+++ b/Source/UBCS-WEB/src/components/file/main.vue
@@ -188,6 +188,7 @@
           prop: 'attachFile',
           type: 'upload',
           dragFile: true,
+          showFileList:false,
           accept: this.options.uploadAccept || 'file',
           loadText: '鏂囦欢涓婁紶涓紝璇风◢绛�',
           span: 24,
@@ -363,14 +364,17 @@
     },
     handleDownload(row) {
       //window.open(`${row.link}`);
+      let data=new FormData();
       if(row && row.oid){
-        download(row.oid)
+        data.append('fileOids',row.oid)
+        download(data)
       }else{
         if (this.selectionList.length === 0) {
-          this.$message.warning("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
+          this.$message.warning("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");x
           return;
         }
-        download(this.oids);
+        data.append('fileOids',this.oids)
+        download(data);
       }
     },
     rowDel(row) {
@@ -380,7 +384,7 @@
         type: "warning"
       })
         .then(() => {
-          return remove(row.oid,row.oid);
+          return remove([row.oid]);
         })
         .then(() => {
           this.onLoad(this.page);
@@ -401,7 +405,7 @@
         type: "warning"
       })
         .then(() => {
-          return remove(this.oids,this.oids);
+          return remove(this.oids.split(','));
         })
         .then(() => {
           this.onLoad(this.page);

--
Gitblit v1.9.3