yz3456
2024-04-20 c0b7131a4213e7b1485c63fcad88d8d2d146c96c
ruoyi-ui/src/views/doctor/index.vue
@@ -6,7 +6,7 @@
                   style="width: 240px;
                   height: 35px;
                   border-radius: 16px 16px 16px 16px;
                   opacity: 0.5;" @keyup.enter.native="handleQuery">
                   opacity: 0.5;" @keyup.enter.native="handleQuery"  filterable allow-create>
          <el-option v-for="item in typeOptions"
            :key="item.value" :label="item.label" :value="item.value"/>
        </el-select>
@@ -320,7 +320,7 @@
               style="margin-left: 10px"
               size="small"
               type="success"
               @click="picUpload"
             >上传到服务器</el-button>
        <h4 class="form-header">其他附件 </h4>
@@ -333,13 +333,13 @@
          :on-remove="handleRemoveFile"
          :http-request="requestUpload1"
          :show-file-list="true"
        ref="upload1"
        :on-change="handleChange1"
        :auto-upload="false"
        list-type="picture-card"
        >
<i slot="default" class="el-icon-plus"></i>
        <div slot="file" slot-scope="{file}">
@@ -366,9 +366,9 @@
                    >
                      <i class="el-icon-zoom-in"></i>
                    </span>
                    <span
                      class="el-upload-list__item-delete"
                      @click="handleRemoveFile(file)"
                    >
@@ -579,7 +579,7 @@
    /** 查询记录列表 */
    getList() {
      this.loading = true;
      let _this = this;
      let _this = this;
      // console.log(this.queryParams)
      //  listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
      listDoctor(this.queryParams).then(response => {
@@ -649,10 +649,10 @@
      {
        if(this.fileListOther[i].url==file.url)
        {
          this.$delete(this.fileListOther,i);
          this.$delete(this.uploadFileList1,i);
          }
      }
    },
@@ -752,7 +752,7 @@
    /** 提交按钮(数据权限) */
    submitDataScope: function() {
      this.$refs["elForm"].validate(valid => {
        if (valid) {
@@ -777,7 +777,7 @@
    },
   handleChange(file, fileList1) {
         //定义一个全局数组uploadFileList来做存储
       // this.uploadFileList.push(file.raw);
        console.log("=========5555=========")
        console.log(file)
@@ -800,7 +800,7 @@
      },
      fileUpload(){
      //   var file = params.file;
         var formData = new FormData();
         this.$refs.upload1.submit();
         // formData.append('uploadFile', file);
@@ -810,18 +810,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()
      {
@@ -836,7 +836,7 @@
      //console.log(this.uploadFileList)
         this.uploadFileList.forEach((elem)=>{
            formData.append("files", elem)
         })
         //alert(90)
         let _this = this
@@ -846,7 +846,7 @@
            _this.formDat.url = _this.formDat.url+","+response.fileNames
           _this.uploadFileList = []
           _this.$modal.msgSuccess("图片上传成功");
        });
      },
       requestUpload(params) {