From 63508b6027085a696298a1c26c74c704ef13b5a7 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 18 三月 2025 21:56:33 +0800
Subject: [PATCH] 修改了对应bug

---
 ruoyi-ui/src/views/selfeconomy/index.vue |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/ruoyi-ui/src/views/selfeconomy/index.vue b/ruoyi-ui/src/views/selfeconomy/index.vue
index b0183bc..40e5702 100644
--- a/ruoyi-ui/src/views/selfeconomy/index.vue
+++ b/ruoyi-ui/src/views/selfeconomy/index.vue
@@ -1178,21 +1178,25 @@
             addSelfEconomy(this.formDat).then(response => {
               this.$modal.msgSuccess("鏂板鎴愬姛");
              // this.open = false;
+			 // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
+			 Object.keys(this.formDat).forEach(key => {
+			   this.formDat[key] = '';
+			 });
+			 var fl = this.fileList.length
+			 for(let i = 0; i < fl; i++)
+			 {
+			   this.handleRemove(this.fileList[0]);
+			 }
+			 var gh = this.fileListOther.length
+			 for(let i = 0; i < gh; i++){
+			   this.handleRemoveFile(this.fileListOther[0]);
+			 }
+			// alert(123)
               this.getList();
             });
           }
         });
-        // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
-        Object.keys(this.formDat).forEach(key => {
-          this.formDat[key] = '';
-        });
-        for(let i = 0; i <= this.fileList.length; i++)
-        {
-          this.handleRemove(this.fileList[0]);
-        }
-        for(let i = 0; i < this.fileListOther.length; i++){
-          this.handleRemoveFile(this.fileListOther[0]);
-        }
+      
       },
     handleChange(file, fileList1) {
     	   //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍

--
Gitblit v1.9.1