From b907d9bffedeb001911c0305c661e9a3a4ad5404 Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期六, 23 三月 2024 21:41:45 +0800 Subject: [PATCH] 新增家庭会议模块 --- ruoyi-ui/src/views/pet/noteInfo.vue | 47 ++++++++++++++++++++++++----------------------- 1 files changed, 24 insertions(+), 23 deletions(-) diff --git a/ruoyi-ui/src/views/pet/noteInfo.vue b/ruoyi-ui/src/views/pet/noteInfo.vue index c0bb6be..9c7ef03 100644 --- a/ruoyi-ui/src/views/pet/noteInfo.vue +++ b/ruoyi-ui/src/views/pet/noteInfo.vue @@ -182,14 +182,14 @@ // 鏁版嵁鑼冨洿閫夐」 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:[], fileListOther:[ - + ], dsb:true, btn:false, @@ -354,10 +354,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) @@ -374,7 +374,7 @@ updatenotePet(this.formData).then(response => { this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); // this.open = false; - + }); } }, @@ -398,7 +398,7 @@ // alert(this.uploadFileList.length) } this.$delete(this.fileList,i); - + } } let ul = "" @@ -451,7 +451,7 @@ //鑷畾涔変笂浼犳柟娉� handleChange(file, fileList1) { //瀹氫箟涓�涓叏灞�鏁扮粍uploadFileList鏉ュ仛瀛樺偍 - + // this.uploadFileList.push(file.raw); console.log("=========5555=========") this.uploadFileList.push(file.raw); @@ -460,7 +460,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}) @@ -471,7 +471,7 @@ }, fileUpload(){ // var file = params.file; - + var formData = new FormData(); //this.$refs.upload1.submit(); // alert(this.uploadFileList1.length) @@ -479,14 +479,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 = [] @@ -494,27 +494,28 @@ updatenotePet(_this.formData).then(response => { this.$modal.msgSuccess("鏂囨。涓婁紶鎴愬姛"); // this.open = false; + this.uploading = 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) @@ -541,12 +542,12 @@ updatenotePet(_this.formData).then(response => { _this.$modal.msgSuccess("鍥剧墖涓婁紶鎴愬姛"); // this.open = false; - + }); // } // else{ // _this.fileListOther.push({name:response.data.fileName, url:response.data.url}) - + // } }); }, @@ -554,10 +555,10 @@ { // alert(124) // this.uploadFileList.push(params.file); - + //alert(34) - - + + }, requestUpload1(params) { -- Gitblit v1.9.1