From 251cc3290959d2085aa3359d6f74d97db914d182 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期日, 22 十月 2023 00:44:22 +0800
Subject: [PATCH] 修改了表格的行高,以及数据过长的部分用省略号表示

---
 ruoyi-ui/src/views/bignote/familyeventInfo.vue |   60 +++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 33 insertions(+), 27 deletions(-)

diff --git a/ruoyi-ui/src/views/bignote/familyeventInfo.vue b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
index f97c54c..cb007b3 100644
--- a/ruoyi-ui/src/views/bignote/familyeventInfo.vue
+++ b/ruoyi-ui/src/views/bignote/familyeventInfo.vue
@@ -27,8 +27,9 @@
         </el-input>
       </el-form-item>
       <el-form-item label="鍙戠敓鏃堕棿" prop="happenTime">
-        <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-form-item label="澶囨敞" prop="remark">
@@ -49,8 +50,6 @@
         :file-list="fileList"
         :disabled="!btn"
         :class="{ hide: !btn }"
-
-
       >
         <div v-if="uploading1" class="upload-status">姝e湪涓婁紶...</div>
         <i v-if="!uploading1" slot="default" class="el-icon-plus"></i>
@@ -69,8 +68,7 @@
           class="el-upload-list__item-preview"
           @click="handlePictureCardPreview(file)"
         >
-<!--          <i class="el-icon-zoom-in"></i>-->
-          <i v-if="isImage(file)" class="el-icon-zoom-in"></i>
+          <i class="el-icon-zoom-in"></i>
         </span>
         <span
 
@@ -171,12 +169,14 @@
     return {
       cdi:"瀹跺涵澶т簨璁颁俊鎭�",
       udi:"瀹跺涵澶т簨璁颁慨鏀�",
-      fot:[".jpg",".jif","png"],
+
       fileList:[
       ],
       fileListOther:[
 
       ],
+      fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx',
+        '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'],
       dsb:true,
       btn:false,
       isShow:true,
@@ -191,6 +191,7 @@
         url: undefined,
       },
       dialogImageUrl: '',
+      url1:undefined,
       dialogVisible: false,
       disabled: false,
       rules: {
@@ -245,28 +246,38 @@
     if (id) {
       this.loading = true;
       getFamilyeventInfo(id).then((response) => {
+        console.log("涓婇潰");
+        console.log(this.btn);
         this.formData = response.data;
-        let paths = response.data.url.split(",");
-        for(let i = 0; i < paths.length; i++)
-        {
-          if(paths[i]!="") {
+        const url = this.formData.url;
+        // const url1 = url.replace(/^http:/, 'https:');
+        const url1 = url.replace(/http:\/\/47\.93\.189\.255:8080\//g, '');
+        this.formData.url = url1; // 鏇存柊 formData 瀵硅薄涓殑 url 瀛楁
+        console.log(url);
+        console.log(url1); // 杈撳嚭淇敼鍚庣殑 https URL
+        let paths = this.formData.url.split(","); // 淇姝ゅ
+        for (let i = 0; i < paths.length; i++) {
+          if (paths[i] !== "") {
+            let pth = paths[i].substr(paths[i].length - 4);
 
-            let pth = paths[i].substr(paths[i].length - 4, paths[i].length)
+            if (this.fot.includes(pth)) {
 
-            if (_this.fot.includes(pth) === true)
-              _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
-            else {
-              // alert(paths[i])
-              let nms = paths[i].split("\/")
-              let nm = nms[nms.length - 1]
-              _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i]})
+              let nms = paths[i].split("/");
+              let nm = nms[nms.length - 1];
+
+              this.fileList.push({ name: nm, url: "http://www.bendudu.com/" + paths[i] });
+              console.log(this.fileList)
+            } else {
+              // alert(paths[i]);
+              let nms = paths[i].split("/");
+              let nm = nms[nms.length - 1];
+              this.fileListOther.push({ name: nm, url: process.env.VUE_APP_BASE_TRUE_API + paths[i] });
+
             }
           }
         }
-        this.loading = false;
       });
-      this.getCateInfor()
-
+      this.loading = false;
     }
   },
   mounted() {},
@@ -382,12 +393,7 @@
       this.btn = true
       this.isShow=false
     },
-    isImage(file) {
 
-      let pth = file.name.substr(file.name.length - 4, file.name.length);
-
-      return this.fot.includes(pth) ;
-    },
     requestUpload(params)
     {
       var file = params.file;

--
Gitblit v1.9.1