From 0188d5c81ee28ab2f42edc5d1db67c9cdb0db42d Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期五, 29 三月 2024 23:15:46 +0800
Subject: [PATCH] 提交上传的图像的代码

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

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index ee6f147..077a2f0 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -240,6 +240,7 @@
         remark: undefined,
         url: "",
       },
+	  ID: undefined,
       dialogImageUrl: '',
       url1:undefined,
       dialogVisible: false,
@@ -292,7 +293,7 @@
       this.isShow=false
      //       alert(this.btn)
     }
-
+	this.ID = id; 
     let _this = this
     if (id) {
       this.loading = true;
@@ -576,10 +577,48 @@
 		//console.log(_this.fileList)
 	//	alert(response.fileNames)
           _this.formData.url = _this.formData.url+","+response.fileNames
+		  
 		_this.uploadFileList = []
          // alert(87)
           updateFamilyevent(_this.formData).then(response => {
             _this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛");
+			let id = _this.ID
+			if (id) {
+			  _this.loading = true;
+			  getFamilyeventInfo(id).then((response) => {
+			    _this.formData = response.data;
+				alert(123)
+			    let paths = _this.formData.url.split(",");
+			    for(let i = 0; i < paths.length; i++)
+			    {
+			      if(paths[i]!="") {
+			
+			        let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
+				//	alert(pth)
+			        if (_this.fot.includes(pth) === true)
+					{
+						if(paths[i][0]=="/")
+			          _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+					  else
+					     _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+					  }
+			        else {
+			          // alert(paths[i])
+					 // alert()
+			          let nms = paths[i].split("\/")
+			          let nm = nms[nms.length - 1]
+					  if(paths[i][0]=="/")
+			          _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false})
+						else
+						_this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false})
+						
+					}
+			      }
+				//  _this.fileList1 = _this.fileList
+			    }
+			    _this.loading = false;
+			  });
+			}
             // this.open = false;
 
           });

--
Gitblit v1.9.1