From c48fc6b1b440ef54da502ebf8b8e13fe4343f929 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 15 八月 2023 21:45:10 +0800
Subject: [PATCH] 完善荣誉证书模块的类别和名称的选择输入功能;家根网可以按照身份、姓名搜索;成长经历阅历的各个小模块的时间在修改时变成可选形式

---
 ruoyi-ui/src/views/clean/index.vue |   37 +++++++++++++++++++++++--------------
 1 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/ruoyi-ui/src/views/clean/index.vue b/ruoyi-ui/src/views/clean/index.vue
index cede9aa..f222851 100644
--- a/ruoyi-ui/src/views/clean/index.vue
+++ b/ruoyi-ui/src/views/clean/index.vue
@@ -125,10 +125,10 @@
           </el-table-column>
        <el-table-column label="閫傜敤浜�" prop="suitable" sortable :show-overflow-tooltip="true" width="150" />
         <el-table-column label="绫诲埆" prop="type" sortable width="100" />
-        <el-table-column label="淇濇磥鏂规硶" prop="method" sortable width="100" />
-        <el-table-column label="鏉愭枡瀛樻斁鍦�" prop="location" sortable width="120" />
-        <el-table-column label="鏀剧疆鍦扮偣" prop="place" sortable width="100" />
-        <el-table-column label="鍙戠敓鏃堕棿" prop="happenTime" sortable width="100" align="center">
+        <el-table-column label="淇濇磥鏂规硶" prop="method" sortable width="120" />
+        <el-table-column label="鏉愭枡瀛樻斁鍦�" prop="location" sortable width="150" />
+        <el-table-column label="鏀剧疆鍦扮偣" prop="place" sortable width="120" />
+        <el-table-column label="鍙戠敓鏃堕棿" prop="happenTime" sortable width="150" align="center">
           <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '鈥斺�斺�斺��'}}</template>
         </el-table-column>
         <el-table-column label="澶囨敞" prop="remark" sortable width="100" />
@@ -142,15 +142,16 @@
                 alt=""
                 style="width: 35px; height: 35px;"
                 fit="cover"
-                v-if="scope.row.url !== ',' "
+                v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
               >
               <img
+                v-else
                 class="el-upload-list__item-thumbnail"
                 src="../../assets/images/deviceA.png"
                 alt=""
                 style="width: 35px; height: 35px;"
                 fit="cover"
-                v-if="scope.row.url === ','"
+
               ></div>
           </template>
         </el-table-column>
@@ -205,10 +206,10 @@
             </el-input>
           </el-form-item>
           <el-form-item label="鏃堕棿" prop="happenTime">
-           <el-date-picker
+           <el-input
             v-model='formDat.happenTime'
-            type='createDate'
-            placeholder='閫夋嫨鏃ユ湡'></el-date-picker>
+            type='date'
+            placeholder='閫夋嫨鏃ユ湡'></el-input>
           </el-form-item>
           <el-form-item label="淇濇磥鏂规硶" prop="method">
             <el-input v-model="formDat.method" placeholder="璇疯緭鍏ヤ繚娲佹柟娉�" clearable :style="{width: '100%'}" >
@@ -235,7 +236,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"
@@ -351,6 +353,7 @@
         ],
         dsb:true,
         btn:false,
+        uploading: false,
         formDat: {
           type: undefined,
           kind: undefined,
@@ -609,8 +612,13 @@
         Object.keys(this.formDat).forEach(key => {
           this.formDat[key] = '';
         });
-        this.handleRemove(this.fileList[0]);
-        this.handleRemoveFile(this.fileListOther[0]);
+        for(let i = 0; i <= this.fileList.length; i++)
+        {
+          this.handleRemove(this.fileList[0]);
+        }
+        for(let i = 0; i < this.fileListOther.length; i++){
+          this.handleRemoveFile(this.fileListOther[0]);
+        }
       },
       requestUpload(params)
       {
@@ -618,10 +626,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