From 6b9c521de6d552fe00e7e31076a5e06b7b7b0767 Mon Sep 17 00:00:00 2001
From: linwenling <3256558519@qq.com>
Date: 星期二, 15 八月 2023 21:39:40 +0800
Subject: [PATCH] 修改

---
 ruoyi-ui/src/views/pet/index.vue |   49 ++++++++++---------------------------------------
 1 files changed, 10 insertions(+), 39 deletions(-)

diff --git a/ruoyi-ui/src/views/pet/index.vue b/ruoyi-ui/src/views/pet/index.vue
index 8c1b639..43840fe 100644
--- a/ruoyi-ui/src/views/pet/index.vue
+++ b/ruoyi-ui/src/views/pet/index.vue
@@ -78,40 +78,7 @@
           v-hasPermi="['system:role:remove']"
         >鍒犻櫎</el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['family:note:export']"
-        >瀵煎嚭</el-button>
-      </el-col>
 
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['family:note:export']"
-        >瀵煎叆妯℃澘涓嬭浇</el-button>
-      </el-col>
-      <el-col :span="1.2">
-        <el-upload
-          action=""
-          class="upload-demo"
-          :show-file-list="false"
-          :http-request="handleEnport"
-        >
-          <el-button size="mini"   type="primary"
-                     plain
-                     icon="el-icon-plus" >瀵煎叆</el-button>
-
-        </el-upload>
-      </el-col>
 
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
@@ -190,11 +157,11 @@
           <el-input v-model="formDat.name" placeholder="璇疯緭鍏ュ悕瀛�" clearable :style="{width: '100%'}" ></el-input>
         </el-form-item>
         <el-form-item label="鍑虹敓鏃ユ湡" prop="birth">
-          <el-date-picker
+          <el-input
             v-model='formDat.birth'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
         <el-form-item label="鎬у埆" prop="sex">
           <el-select v-model="formDat.sex" placeholder="璇烽�夋嫨鎬у埆" clearable :style="{width: '100%'}"  >
@@ -260,7 +227,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"
@@ -298,7 +266,8 @@
           :http-request="requestUpload"
           :file-list="fileListOther"
         >
-          <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"
@@ -397,6 +366,7 @@
       ],
       dsb:true,
       btn:false,
+      uploading: false,
       formDat: {
         type: undefined,
         name: undefined,
@@ -728,10 +698,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