From f43554d828bc2212c5d7118d7de5ebcc57d1c6f3 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 15 八月 2023 19:28:50 +0800
Subject: [PATCH] 修改间隔

---
 ruoyi-ui/src/views/travel/travelInfo.vue |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/ruoyi-ui/src/views/travel/travelInfo.vue b/ruoyi-ui/src/views/travel/travelInfo.vue
index 6b0ed50..b5e6904 100644
--- a/ruoyi-ui/src/views/travel/travelInfo.vue
+++ b/ruoyi-ui/src/views/travel/travelInfo.vue
@@ -47,7 +47,8 @@
         :http-request="requestUpload"
         :file-list="fileList"
       >
-        <i slot="default" class="el-icon-plus"></i>
+        <div v-if="uploading" class="upload-status">姝e湪涓婁紶...</div>
+        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
         <div slot="file" slot-scope="{file}">
           <img
             class="el-upload-list__item-thumbnail"
@@ -59,14 +60,14 @@
           >
           <span class="el-upload-list__item-actions">
           <span
-            v-if="isShow"
+
             class="el-upload-list__item-preview"
             @click="handlePictureCardPreview(file)"
           >
             <i class="el-icon-zoom-in"></i>
           </span>
           <span
-            v-if="isShow"
+
             class="el-upload-list__item-delete"
             @click="handleDownload(file.url)"
           >
@@ -93,12 +94,12 @@
         multiple
         list-type="picture-card"
         :on-preview="handleFileCardPreview"
-        :on-remove="handleRemove"
+        :on-remove="handleRemoveFile"
         :http-request="requestUpload"
         :show-file-list="true"
       >
-
-        <i slot="default" class="el-icon-plus"></i>
+        <div v-if="uploading" class="upload-status">姝e湪涓婁紶...</div>
+        <i v-if="!uploading" slot="default" class="el-icon-plus"></i>
         <div slot="file" slot-scope="{file}">
           <img
             class="el-upload-list__item-thumbnail"
@@ -109,20 +110,19 @@
           >
           <span class="el-upload-list__item-actions">
                   <span
-                    v-if="isShow"
+
                     class="el-upload-list__item-preview"
                     @click="handleFileCardPreview(file)"
                   >
                     <i class="el-icon-zoom-in"></i>
                   </span>
                   <span
-                    v-if="isShow"
-                    @click="handleRemove(file)"
-                    class="el-upload-list__item-delete"
 
+                    class="el-upload-list__item-delete"
+                    @click="handleDownload(file.url)"
                   >
-                    <i class="el-icon-download"></i>
-                  </span>
+                 <i class="el-icon-download"></i>
+                 </span>
                   <span
                     v-if="isShow"
                     class="el-upload-list__item-delete"
@@ -172,7 +172,7 @@
       dsb:true,
       btn:false,
       isShow:true,
-
+      uploading: false,
       doctorList: [],
 
       formData: {
@@ -359,10 +359,11 @@
       var formData = new FormData();
       formData.append('uploadFile', file);
       let _this = this
-
+      this.uploading = true;
       uploadPic(formData).then(response => {
         let pth = response.data.originalFilename.substr(response.data.originalFilename.length-4, response.data.originalFilename.length)
-
+        this.uploading = false;
+        this.$modal.msgSuccess("涓婁紶鎴愬姛");
         if(_this.fot.includes(pth) === true)
         {
           _this.fileList.push({name:response.data.fileName, "url":response.data.url})

--
Gitblit v1.9.1