From f72cc2c5bc9ea4df7819cf53e3b872024e0583a1 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期六, 31 八月 2024 10:54:27 +0800
Subject: [PATCH] 修改家庭医生上传

---
 ruoyi-ui/src/views/doctor/doctorInfo.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ruoyi-ui/src/views/doctor/doctorInfo.vue b/ruoyi-ui/src/views/doctor/doctorInfo.vue
index 30c4a8b..0c76b4b 100644
--- a/ruoyi-ui/src/views/doctor/doctorInfo.vue
+++ b/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("鏂囨。涓婁紶鎴愬姛");

--
Gitblit v1.9.1