From cb62f9fe04c98c30434bb4a3a20bafb57c231ebb Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期二, 05 九月 2023 15:13:56 +0800
Subject: [PATCH] 1.成长经历阅历证件情况可以输入或选择,已改为“持有证件情况” 2.家谱样式调整和两个名字互换位置 3.更新了首页背景图片

---
 ruoyi-ui/src/views/collection/collectionInfo.vue |  151 +++++++++++++++++++++++++++-----------------------
 1 files changed, 81 insertions(+), 70 deletions(-)

diff --git a/ruoyi-ui/src/views/collection/collectionInfo.vue b/ruoyi-ui/src/views/collection/collectionInfo.vue
index e5fbf9b..6145d2e 100644
--- a/ruoyi-ui/src/views/collection/collectionInfo.vue
+++ b/ruoyi-ui/src/views/collection/collectionInfo.vue
@@ -17,9 +17,9 @@
            <el-row :span="12">
              <el-cow >
               <el-form-item label="鑾峰緱鏃堕棿" prop="happenTime" label-width="70px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">
-                <el-input v-model="formData.happenTime" placeholder="璇疯緭鍏ヨ幏寰楁椂闂�" type="date" clearable :style="{width: '100%'}" :disabled="dsb">
-                </el-input>
-
+                <el-date-picker v-model="formData.happenTime" type="date" placeholder="璇烽�夋嫨鏃ユ湡"
+                  :editable="false" :clearable="false" :style="{width: '100%'}" :disabled="dsb" value-format="yyyy-MM-dd"
+                ></el-date-picker>
               </el-form-item>
 
              </el-cow>
@@ -67,77 +67,85 @@
               <el-input v-model="formData.remark" placeholder="璇疯緭鍏ュ娉�" clearable :style="{width: '100%'}" :disabled="dsb"></el-input>
             </el-form-item>
              </el-cow>
+             <el-cow >
+               <el-form-item label="鏄惁鏄湰瀹跺涵璁板綍" prop="ownData">
+                 <el-input  v-model="formData.ownData=== 1 ? '鏄�':'鍚�'" placeholder=" " clearable :style="{width: '100%'}" :disabled=true></el-input>
+               </el-form-item>
+             </el-cow>
+
            </el-row>
          </el-container>
-         <h4 class="form-header">鐢靛瓙鏂囦欢 </h4>
-         <el-upload
-           action="#"
-           list-type="picture-card"
-           multiple
-           :http-request="requestUpload"
-           :file-list="fileList"
-         >
-           <i slot="default" class="el-icon-plus"></i>
-           <div slot="file" slot-scope="{file}">
-             <img
-               class="el-upload-list__item-thumbnail"
-               :src="file.url"
-               alt=""
-               style="width: 147px; height: 147px"
-               fit="cover"
-               :preview-src-list="[file.url]"
-             >
-             <span class="el-upload-list__item-actions" >
-            <span
+          <h4 class="form-header">鐩稿叧鍥剧墖 </h4>
+          <el-upload
+            action="#"
+            list-type="picture-card"
+            multiple
+            :http-request="requestUpload"
+            :file-list="fileList"
+          >
+            <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"
+                :src="file.url"
+                alt=""
+                style="width: 147px; height: 147px"
+                fit="cover"
+                :preview-src-list="[file.url]"
+              >
+              <span class="el-upload-list__item-actions" >
+                <span
 
-              class="el-upload-list__item-preview"
-              @click="handlePictureCardPreview(file)"
-            >
-              <i class="el-icon-zoom-in"></i>
-            </span>
-            <span
+                  class="el-upload-list__item-preview"
+                  @click="handlePictureCardPreview(file)"
+                >
+                  <i class="el-icon-zoom-in"></i>
+                </span>
+                <span
 
-              class="el-upload-list__item-delete"
-              @click="handleDownload(file.url)"
-            >
-              <i class="el-icon-download"></i>
-            </span>
-            <span
-              v-if="isShow"
-              class="el-upload-list__item-delete"
-              @click="handleRemove(file)"
-            >
-              <i class="el-icon-delete"></i>
-            </span>
-          </span>
+                  class="el-upload-list__item-delete"
+                  @click="handleDownload(file.url)"
+                >
+                  <i class="el-icon-download"></i>
+                </span>
+                <span
+                  v-if="isShow"
+                  class="el-upload-list__item-delete"
+                  @click="handleRemove(file)"
+                >
+                  <i class="el-icon-delete"></i>
+                </span>
+              </span>
 
 
-           </div>
-         </el-upload>
+            </div>
+          </el-upload>
 
-         <h4 class="form-header">鍏朵粬闄勪欢 </h4>
-         <el-upload
-           action=""
-           :file-list="fileListOther"
-           class="upload-demo"
-           multiple
-           list-type="picture-card"
-           :on-preview="handleFileCardPreview"
-           :on-remove="handleRemoveFile"
-           :http-request="requestUpload"
-           :show-file-list="true"
-         >
+          <h4 class="form-header">鍏朵粬闄勪欢 </h4>
+          <el-upload
+            action=""
+            :file-list="fileListOther"
+            class="upload-demo"
+            multiple
+            list-type="picture-card"
+            :on-preview="handleFileCardPreview"
+            :on-remove="handleRemoveFile"
+            :http-request="requestUpload"
+            :show-file-list="true"
+          >
 
-           <i slot="default" class="el-icon-plus"></i>
-           <div slot="file" slot-scope="{file}">
-             <img
-               class="el-upload-list__item-thumbnail"
-               src="../../assets/401_images/401.gif"
-               alt=""
-               style="width: 147px; height: 147px"
-               fit="cover"
-             >
-             <span class="el-upload-list__item-actions">
+            <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"
+                src="../../assets/401_images/401.gif"
+                alt=""
+                style="width: 147px; height: 147px"
+                fit="cover"
+              >
+              <span class="el-upload-list__item-actions">
                     <span
                       class="el-upload-list__item-preview"
                       @click="handleFileCardPreview(file)"
@@ -161,10 +169,10 @@
                   </span>
 
 
-           </div>
+            </div>
 
 
-         </el-upload>
+          </el-upload>
 
           <el-form-item size="large">
             <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb" >淇敼</el-button>
@@ -205,6 +213,7 @@
       dsb:true,
       btn:false,
       isShow:true,
+      uploading: false,
       // 鏀惰棌涓庤崳瑾夎〃鏍兼暟鎹�
      collectionList: [],
       typeList:[],
@@ -284,6 +293,7 @@
       this.btn= jd
       this.dsb = !jd
       this.showInput=true
+      this.isShow=true
       document.title = "淇敼鏀惰棌涓庤崳瑾夎缁嗕俊鎭�";
       this.$route.meta.title = "淇敼鏀惰棌涓庤崳瑾夎缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
     }
@@ -463,10 +473,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