From bd40473c9c634005bc7e62e7fc901bcd8b598fa0 Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期五, 02 二月 2024 15:20:26 +0800
Subject: [PATCH] 提交了修改

---
 ruoyi-ui/src/views/bignote/familyeventInfo.vue |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index 43cd819..59ce0a7 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -48,6 +48,7 @@
         multiple
         :http-request="requestUpload"
         :file-list="fileList"
+      :on-change="handleChange"
         :disabled="!btn"
         :class="{ hide: !btn }"
 
@@ -177,6 +178,7 @@
 
       fileList:[
       ],
+      uploadFileList:[],
       fileListOther:[
 
       ],
@@ -397,15 +399,27 @@
       this.isShow=false
     },
 
-    requestUpload(params)
+//鑷畾涔変笂浼犳柟娉�
+    handleChange(file, fileList) {
+       //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍
+
+      this.uploadFileList.push(file.raw);
+      console.log("=========5555=========")
+      //console.log(file)
+      console.log(this.uploadFileList)
+    },
+    async requestUpload(params)
     {
+     // alert(124)
       var file = params.file;
+
       var formData = new FormData();
       formData.append('uploadFile', file);
       let _this = this
+     //alert(34)
       this.uploading1 = true;
 
-      uploadPic(formData).then(response => {
+      await uploadPic(formData).then(response => {
         let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
         _this.uploading1= false;
         console.log(_this.fot.includes(pth))

--
Gitblit v1.9.1