From 7fc578dc2032fac935267e92208f7f11384e3800 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期四, 28 十一月 2024 08:36:36 +0800
Subject: [PATCH] 修改了相关bug

---
 ruoyi-ui/src/views/clean/cleanInfo.vue |   43 ++++++++++++++++++++++++++++++-------------
 1 files changed, 30 insertions(+), 13 deletions(-)

diff --git a/ruoyi-ui/src/views/clean/cleanInfo.vue b/ruoyi-ui/src/views/clean/cleanInfo.vue
index 643c656..6fc5633 100644
--- a/ruoyi-ui/src/views/clean/cleanInfo.vue
+++ b/ruoyi-ui/src/views/clean/cleanInfo.vue
@@ -147,7 +147,7 @@
           ></video>
           <img v-else
                class="el-upload-list__item-thumbnail"
-               src="../../assets/401_images/401.gif"
+               src="../../assets/images/deviceLis.png"
                alt=""
                style="width: 147px; height: 147px"
                fit="cover">
@@ -320,6 +320,7 @@
       this.loading = true;
       getCLeanInfo(id).then((response) => {
         this.formData = response.data;
+		console.log(this.formData)
         if(this.formData.kind==1)
         	this.formData.kind = '鏀剁撼'
         else
@@ -332,12 +333,26 @@
               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})
-          	  }
+          	// {
+          	// 	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])
           	 // alert()
@@ -353,7 +368,7 @@
         }
         this.loading = false;
       });
-      this.getCateInfor()
+   //  this.getCateInfor()
 
     }
   },
@@ -366,10 +381,11 @@
         this.loading = true;
         getCLeanInfo(id).then((response) => {
           this.formData = response.data;
-          if(this.formData.kind==1)
-          	this.formData.kind = '鏀剁撼'
-          else
-          	this.formData.kind = '淇濇磥'
+         // if(this.formData.kind==1)
+        //  	this.formData.kind = '鏀剁撼'
+        //  else
+         // 	this.formData.kind = '淇濇磥'
+		 if(response.data.url!=null){
           let paths = response.data.url.split(",");
           for(let i = 0; i < paths.length; i++)
           {
@@ -392,10 +408,11 @@
             	}
               }
           }
+		  }
           _this.fileListOther = _this.fileListOther1
           this.loading = false;
         });
-        this.getCateInfor()
+       // this.getCateInfor()
 
       }
     },

--
Gitblit v1.9.1