From ad5eea58d5ac15dd08ff51658d717984d098f81e Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期四, 07 十二月 2023 16:46:30 +0800
Subject: [PATCH] 标题修改

---
 ruoyi-ui/src/views/contacts/contactsInfo.vue |   68 +++++++++++++++++++--------------
 1 files changed, 39 insertions(+), 29 deletions(-)

diff --git a/ruoyi-ui/src/views/contacts/contactsInfo.vue b/ruoyi-ui/src/views/contacts/contactsInfo.vue
index 9e7a379..ad7498b 100644
--- a/ruoyi-ui/src/views/contacts/contactsInfo.vue
+++ b/ruoyi-ui/src/views/contacts/contactsInfo.vue
@@ -95,7 +95,7 @@
             class="el-upload-list__item-thumbnail"
             :src="file.url"
             alt=""
-            style="width: 100%; height: 100%; object-fit: cover;"
+            style="width: 147px; height: 147px; object-fit: cover;"
             fit="cover"
             :preview-src-list="[file.url]"
           >
@@ -144,37 +144,44 @@
         <div v-if="uploading1" class="upload-status">姝e湪涓婁紶...</div>
         <i v-if="!uploading1" slot="default" class="el-icon-plus"></i>
         <div slot="file" slot-scope="{file}">
-          <img
+          <!-- 娣诲姞video鍏冪礌鐢ㄤ簬鏄剧ず瑙嗛 -->
+          <video
+            v-if="file.url.includes('.mp4')"
             class="el-upload-list__item-thumbnail"
-            src="../../assets/401_images/401.gif"
-            alt=""
+            :src="file.url"
             style="width: 147px; height: 147px"
             fit="cover"
-          >
+          ></video>
+          <img v-else
+               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
+               <span class="el-upload-list__item-name">{{ file.name }}</span>
+                    <span
+                      class="el-upload-list__item-preview"
+                      @click="handleFileCardPreview(file)"
+                    >
+                      <i class="el-icon-zoom-in"></i>
+                    </span>
+                    <span
 
-                  class="el-upload-list__item-preview"
-                  @click="handleFileCardPreview(file)"
-                >
-                  <i class="el-icon-zoom-in"></i>
-                </span>
-                <span
-
-                  class="el-upload-list__item-delete"
-                  @click="handleDownload(file.url)"
-                >
+                      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="handleRemoveFile(file)"
-                >
-                  <i class="el-icon-delete"></i>
-                </span>
+                    <span
+                      v-if="isShow"
+                      class="el-upload-list__item-delete"
+                      @click="handleRemoveFile(file)"
+                    >
+                      <i class="el-icon-delete"></i>
+                    </span>
               </span>
-
 
         </div>
 
@@ -187,7 +194,7 @@
     </el-form>
     </div>
     <el-dialog  :visible.sync="dialogVisible">
-      <img w-full :src="dialogImageUrl" alt="Preview Image" />
+      <img w-full :src="dialogImageUrl" style="width: 100%; height: 100%" alt="Preview Image" />
     </el-dialog>
   </div>
 </template>
@@ -206,7 +213,10 @@
     return {
       cdi:"閫氳褰曡缁嗕俊鎭�",
       udi:"閫氳褰曚俊鎭鎯�",
-      fot:[".jpg",".jif","png"],
+    // 鏁版嵁鑼冨洿閫夐」
+    fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
+      '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
+    
       fileList:[
       ],
       fileListOther:[
@@ -288,11 +298,11 @@
       this.btn= jd
       this.dsb = !jd
       this.isShow=true
-      document.title = "淇敼閫氳褰曡缁嗕俊鎭�";
+     // document.title = "淇敼閫氳褰曡缁嗕俊鎭�";
       this.$route.meta.title = "淇敼閫氳褰曡缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
     }
     else{
-      document.title = "閫氳褰曡缁嗕俊鎭�";
+    //  document.title = "閫氳褰曡缁嗕俊鎭�";
       this.$route.meta.title = "閫氳褰曡缁嗕俊鎭�";//鍒楄〃鐨勫悕绉�
       this.isShow=false
       this.btn = false;
@@ -534,7 +544,7 @@
   display: block;
   position: absolute;
 }
-.hide .el-upload--picture-card {
+.hide /deep/ .el-upload--picture-card {
   display: none;
 }
 .form{

--
Gitblit v1.9.1