From fe903b2a6834ac06a2d1b49b705c74ad1ccb10d8 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 28 七月 2023 12:04:53 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs

---
 Source/UBCS-WEB/src/components/Master/MasterTransfer.vue |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
index 1663b08..267b33b 100644
--- a/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
+++ b/Source/UBCS-WEB/src/components/Master/MasterTransfer.vue
@@ -27,6 +27,7 @@
 
 <script>
 import {exportCode} from '@/api/GetItem'
+import func from "@/util/func";
 export default {
 name: "MasterTransfer",
   props:['visible','tableHeadData','codeClassifyOid','tableData','selectRow'],
@@ -118,17 +119,26 @@
         if(this.selectRow.length<=0){
           this.$message.warning('璇烽�夋嫨瑕佸鍑虹殑妯℃澘')
         }else {
+          //宸查�夋嫨澶氶��
           const selectList=[]
-          let exportArr=[]
+          //宸查�夋嫨灞炴��
+          let exportArr={}
+          const ids = this.selectRow.map(item => item.oid).join(',')
           this.selectRow.forEach(item=>{
             selectList.push(
              item.oid
             )
           })
-          exportArr=this.value.map(index => this.tableHeadData[index].prop);
-          exportCode({codeClassifyOid:this.codeClassifyOid,'conditionMap[oid]':selectList,'attrIdIndexMap[index]':exportArr}).then(res=>{
-            console.log(res)
+          this.value.map(index => this.tableHeadData[index].prop).forEach((item, index) => {
+            exportArr[`attrIdIndexMap[${index}]`] = item
           })
+          exportCode({codeClassifyOid:this.codeClassifyOid,'conditionMap[oid]':ids,...exportArr}).then(res=>{
+            // console.log('res',res)
+            if(res){
+              func.downloadFileByBlob(res);
+            }
+          })
+
         }
       };
     },

--
Gitblit v1.9.3