From 3f2e2443a61d1ff98a829925e3d42cdfa1275f0b Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期六, 05 八月 2023 02:33:52 +0800
Subject: [PATCH] 个人自传已可以新增

---
 ruoyi-ui/src/views/healthy/index.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue
index 72acc99..09347da 100644
--- a/ruoyi-ui/src/views/healthy/index.vue
+++ b/ruoyi-ui/src/views/healthy/index.vue
@@ -6,7 +6,7 @@
         <el-date-picker
           v-model="dateRange"
           style="width: 240px;"
-          value-format="yyyy-MM-dd HH-MM"
+          value-format="yyyy-MM-dd"
           type="daterange"
           range-separator="-"
           start-placeholder="寮�濮嬫棩鏈�"
@@ -182,11 +182,11 @@
 
 
         <el-form-item label="浣撴鏃堕棿" prop="checkTime">
-          <el-date-picker
+          <el-input
             v-model='formDat.checkTime'
             type='date'
             placeholder='閫夋嫨鏃ユ湡'
-          ></el-date-picker>
+          ></el-input>
         </el-form-item>
 
         <el-form-item label="绫诲埆" prop="type">
@@ -256,11 +256,11 @@
           class="upload-demo"
           multiple
 
-          :on-remove="handleRemove"
+          :on-remove="handleRemoveFile"
           :http-request="requestUpload"
           :show-file-list="true"
         >
-          <el-button type="primary">涓婁紶</el-button>
+          <el-button type="primary">鐐瑰嚮涓婁紶</el-button>
           <template #tip>
             <div class="el-upload__tip">
             </div>
@@ -451,6 +451,13 @@
       );
     },
     handleRemove(file) {
+      for(let i = 0; i < this.fileList.length; i++)
+      {
+        if(this.fileList[i].url==file.url)
+          this.$delete(this.fileList,i);
+      }
+    },
+    handleRemoveFile(file) {
       for(let i = 0; i < this.fileListOther.length; i++)
       {
         if(this.fileListOther[i].url==file.url)
@@ -561,6 +568,12 @@
           });
         }
       });
+      // 娓呯┖formDat瀵硅薄鐨勬暟鎹�
+      Object.keys(this.formDat).forEach(key => {
+        this.formDat[key] = '';
+      });
+      this.handleRemove(this.fileList[0]);
+      this.handleRemoveFile(this.fileListOther[0]);
     },
     requestUpload(params)
     {

--
Gitblit v1.9.1