yz3456
2024-05-18 87e28c4bc7fe04eb14629482e97541d183c1d067
ruoyi-ui/src/views/clean/index.vue
@@ -257,7 +257,7 @@
         :on-change="handleChange"
         :auto-upload="false"
         ref="upload"
          >
            <i slot="default" class="el-icon-plus"></i>
            <div slot="file" slot-scope="{ file }">
@@ -292,7 +292,7 @@
                 style="margin-left: 10px"
                 size="small"
                 type="success"
                 @click="picUpload"
               >上传到服务器</el-button>
          <h4 class="form-header">其他附件 </h4>
@@ -309,7 +309,7 @@
            :http-request="requestUpload1"
            :show-file-list="true"
          >
<!--
<!--
            <el-button type="primary">点击上传</el-button>
            <div v-if="uploading" class="upload-status">正在上传...</div> -->
            <template #tip>
@@ -386,7 +386,7 @@
        // 数据范围选项
      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:[],
@@ -551,7 +551,7 @@
             this.$delete(this.fileList,i);
                  this.$delete(this.uploadFileList,i);
                  }
        }
      },
@@ -586,7 +586,7 @@
            deptCheckStrictly: true,
            remark: undefined
          };
        this.resetForm("form");
        this.resetForm("elForm");
      },
      /** 搜索按钮操作 */
      handleQuery() {
@@ -641,10 +641,10 @@
        {
          if(this.fileListOther[i].url==file.url)
          {
            this.$delete(this.fileListOther,i);
            this.$delete(this.uploadFileList1,i);
            }
        }
      },
@@ -677,7 +677,7 @@
      },
    handleChange(file, fileList1) {
       //定义一个全局数组uploadFileList来做存储
     // this.uploadFileList.push(file.raw);
      console.log("=========5555=========")
     this.uploadFileList.push(file.raw);
@@ -689,7 +689,7 @@
    },
    handleChange1(file, fileOtherList1) {
       //定义一个全局数组uploadFileList来做存储
     // this.uploadFileList.push(file.raw);
      console.log("=========5555=========")
     this.uploadFileList1.push(file.raw);
@@ -700,7 +700,7 @@
    },
    fileUpload(){
    //   var file = params.file;
       var formData = new FormData();
       //this.$refs.upload1.submit();
       // formData.append('uploadFile', file);
@@ -710,18 +710,18 @@
       }
       this.uploadFileList1.forEach((elem)=>{
          formData.append("files", elem)
       })
       let _this = this
       this.uploading = true;
       uploadPic(formData).then(response => {
       _this.uploadFileList1 = []
       _this.formDat.url = _this.formDat.url+","+response.fileNames
       _this.$modal.msgSuccess("文件上传成功!");
         })
    },
    picUpload()
    {
@@ -736,7 +736,7 @@
    //console.log(this.uploadFileList)
       this.uploadFileList.forEach((elem)=>{
          formData.append("files", elem)
       })
       //alert(90)
       let _this = this
@@ -747,11 +747,11 @@
        //alert( _this.formDat.url)
         _this.uploadFileList = []
         _this.$modal.msgSuccess("图片上传成功");
      });
    },
    requestUpload(params) {
   //  this.uploadFileList.push(params.file);
    },
    requestUpload1(params)