From c0702fb50443fb03a4f5a7beb127294a17fc1dcd Mon Sep 17 00:00:00 2001
From: yz3456 <2753272399@qq.com>
Date: 星期六, 30 三月 2024 23:58:01 +0800
Subject: [PATCH] 修改了3月30这周的所有bug

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

diff --git a/ruoyi-ui/src/views/clean/cleanInfo.vue b/ruoyi-ui/src/views/clean/cleanInfo.vue
index 967a0ac..92647bc 100644
--- a/ruoyi-ui/src/views/clean/cleanInfo.vue
+++ b/ruoyi-ui/src/views/clean/cleanInfo.vue
@@ -57,7 +57,7 @@
         action="#"
         list-type="picture-card"
         multiple
- 
+
         :http-request="requestUpload"
         :file-list="fileList"
 		      :on-change="handleChange"
@@ -213,11 +213,11 @@
      // 鏁版嵁鑼冨洿閫夐」
      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
-     
+
       fileList:[
       ],
-	  
-	  
+
+
 	  fileList1:[],
 	  uploadFileList:[],
 	  uploadFileList1:[],
@@ -319,7 +319,7 @@
         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)
@@ -338,7 +338,7 @@
                 _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})
-          		
+
           	}
             }
         }
@@ -386,13 +386,13 @@
     },
 
     submitForm() {
-      let ul = this.fileList.map(function (elem){
-        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
-      }).join(",")
-      let uls = this.fileListOther.map(function (elem){
-        return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
-      }).join(",")
-      this.formData.url = ul+","+uls
+      // let ul = this.fileList.map(function (elem){
+      //   return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      // }).join(",")
+      // let uls = this.fileListOther.map(function (elem){
+      //   return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"")
+      // }).join(",")
+      // this.formData.url = ul+","+uls
 
       this.$refs['elForm'].validate(valid => {
 
@@ -461,10 +461,10 @@
 				this.$delete(this.uploadFileList1, Math.abs(i - this.uploadFileList1.length-1))
 			}
           this.$delete(this.fileListOther,i);
-    
+
 		}
       }
-	  
+
 	  let ul = ""
 	  this.fileList.map(function (elem){
 	  		if(elem.res==false)
@@ -481,12 +481,12 @@
 		  updateClean(this.formData).then(response => {
 			this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
 			// this.open = false;
-		  
+
 		  });
 	  }
-      
 
- 
+
+
     },
 	handleRemove(file) {
 			  //鍒ゆ柇鏄惁鏄箣鍓嶇殑鍥剧墖
@@ -508,7 +508,7 @@
 			 	//	  alert(this.uploadFileList.length)
 			 }
 	      this.$delete(this.fileList,i);
-	   
+
 	  }
 	  }
 	  let ul = ""
@@ -527,7 +527,7 @@
 			this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
 		  });
 	  }
-	
+
 	},
     handleDownload(url) {
       var formData = {'path':"/"+url.replace(process.env.VUE_APP_BASE_TRUE_API,"")};
@@ -544,7 +544,7 @@
     },
 	handleChange(file, fileList1) {
 	       //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍
-	
+
 	     // this.uploadFileList.push(file.raw);
 	      console.log("=========5555=========")
 		  this.uploadFileList.push(file.raw);
@@ -553,7 +553,7 @@
 		//鑷畾涔変笂浼犳柟娉�
 		handleChange1(file, fileListOther1) {
 		       //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍
-		
+
 		     // this.uploadFileList.push(file.raw);
 			 this.uploadFileList1.push(file.raw);
 			  this.fileListOther.push({name:file.name,url:file.url,res:true})
@@ -564,7 +564,7 @@
 		},
 		fileUpload(){
 		//	var file = params.file;
-	
+
 			var formData = new FormData();
 			//this.$refs.upload1.submit();
 		//	alert(this.uploadFileList1.length)
@@ -572,14 +572,14 @@
 			if(this.uploadFileList1.length==0){
 				  this.$modal.msgSuccess("鏂囨。涓婁紶鍒楄〃涓嶈兘涓虹┖锛�");
 				  return}
-			
+
 			this.uploadFileList1.forEach((elem)=>{
 				formData.append("files", elem)
-				
+
 			})
 			console.log(this.uploadFileList1)
 			let _this = this
-	
+
 			this.uploading = true;
 			uploadPic(formData).then(response => {
 			_this.uploadFileList1 = []
@@ -589,25 +589,25 @@
 			      // this.open = false;
 			    });
 			  })
-	
+
 		},
 		picUpload()
 		{
-	
+
 			var formData = new FormData();
 			//this.$refs.upload.submit();
 			//alert(this.uploadFileList.length)
 		if(this.uploadFileList.length==0){
 			  this.$modal.msgSuccess("鍥惧儚涓婁紶鍒楄〃涓嶈兘涓虹┖锛�");
 			  return}
-	
+
 			this.uploadFileList.forEach((elem)=>{
 				formData.append("files", elem)
-				
+
 			})
 			let _this = this
-	
-			
+
+
 	        uploadPic(formData).then(response => {
 				// console.log(response.originalFilenames)
 				// console.log(response.urls)
@@ -634,16 +634,16 @@
 	          updateClean(_this.formData).then(response => {
 	            _this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛");
 	            // this.open = false;
-	
+
 	          });
 	        // }
 	        // else{
 	        //   _this.fileListOther.push({name:response.data.fileName, url:response.data.url})
-	
+
 	        // }
 	      });
 		},
-	 
+
     handleEdit()
     {
       this.dsb = false
@@ -651,12 +651,12 @@
     },
     requestUpload(params)
     {
-      
+
 
     },
     requestUpload1(params)
     {
-    
+
 
     },
 

--
Gitblit v1.9.1