From 017052c6caf4c38b0a2fd25d48d299d79c82814f Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期二, 26 三月 2024 15:34:15 +0800 Subject: [PATCH] 修改旅游模块 --- ruoyi-ui/src/views/travel/travelInfo.vue | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ruoyi-ui/src/views/travel/travelInfo.vue b/ruoyi-ui/src/views/travel/travelInfo.vue index a8908ae..977ca4e 100644 --- a/ruoyi-ui/src/views/travel/travelInfo.vue +++ b/ruoyi-ui/src/views/travel/travelInfo.vue @@ -148,7 +148,7 @@ class="el-upload-list__item-thumbnail" src="../../assets/401_images/401.gif" alt="" - style="width: 100%; height: 100%" + style="width: 147px; height: 147px" fit="cover"> <span class="el-upload-list__item-actions"> @@ -205,7 +205,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:[ @@ -276,11 +279,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=true this.btn = false; @@ -299,12 +302,21 @@ let pth = paths[i].substr(paths[i].length - 4, paths[i].length) if (_this.fot.includes(pth) === true) + { + if(paths[i].includes("https")) + _this.fileList.push({name:paths[i],url: paths[i]}) + else _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i]}) + } else { // alert(paths[i]) + if(paths[i].includes("https")) + _this.fileListOther.push({name:paths[i],url: paths[i]}) + else{ 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]}) + } } } } @@ -465,7 +477,7 @@ display: block; position: absolute; } -.hide .el-upload--picture-card { +.hide /deep/ .el-upload--picture-card { display: none; } .form{ -- Gitblit v1.9.1