From aef876fd5e4f26eead249243b1523ec4cf355340 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期一, 10 六月 2024 12:10:09 +0800
Subject: [PATCH] 用户修改,删除,增加进行了修改

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

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index d8c8d9b..794b00e 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -150,7 +150,7 @@
           ></video>
           <img v-else
                class="el-upload-list__item-thumbnail"
-               :src="file.url"
+               src="../../assets/images/deviceLis.png"
                alt=""
                style="width: 100%; height: 100%"
                fit="cover">
@@ -310,10 +310,18 @@
 		//	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})
+        if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){
+          if(paths[i][0]=="/")
+                _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false})
+          else
+             _this.fileList.push({name:paths[i],url: paths[i],res:false})
+        }else{
+          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])
@@ -332,6 +340,7 @@
         this.loading = false;
       });
     }
+    console.log(this.fileList,'fileListfilelllllllllllll')
   },
   mounted() {},
   methods: {
@@ -509,7 +518,7 @@
     },
     handleDownload(url) {
       var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
-
+		alert(formData['path'])
       let lens = formData.path.split(".")
       let suffix = lens[lens.length-1]
       download(formData).then(async (response) => {

--
Gitblit v1.9.1