feige
2024-08-31 f72cc2c5bc9ea4df7819cf53e3b872024e0583a1
ruoyi-ui/src/views/doctor/doctorInfo.vue
@@ -383,6 +383,8 @@
      this.loading = true;
      getDoctor(id).then((response) => {
        this.formData = response.data;
      console.log(response.data.url)
      if(response.data.url!=null){
        let paths = response.data.url.split(",");
        for(let i = 0; i < paths.length; i++)
        {
@@ -424,6 +426,10 @@
             }
            }
        }
      }
      else{
         this.formData.url = ""
      }
        this.loading = false;
      });
      listType(this.queryParams).then(response => {
@@ -448,6 +454,8 @@
        this.loading = true;
        getDoctor(id).then((response) => {
          this.formData = response.data;
        console.log(response.data.url)
        if(response.data.url!=null){
          let paths = response.data.url.split(",");
          for(let i = 0; i < paths.length; i++)
          {
@@ -470,6 +478,7 @@
               }
              }
          }
        }
          _this.fileListOther = _this.fileListOther1
          this.loading = false;
        });
@@ -697,6 +706,8 @@
          this.uploading = true;
          uploadPic(formData).then(response => {
          _this.uploadFileList1 = []
         // alert(response.fileNames)
         // alert(_this.formData.url)
            _this.formData.url = _this.formData.url+","+response.fileNames
              updateDoctor(_this.formData).then(response => {
                this.$modal.msgSuccess("文档上传成功");