yz3456
2024-03-23 b907d9bffedeb001911c0305c661e9a3a4ad5404
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)
       {