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 | 9 +++++++++
ruoyi-ui/src/views/travel/index.vue | 6 ++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/views/travel/index.vue b/ruoyi-ui/src/views/travel/index.vue
index 2bbe8ac..52c771f 100644
--- a/ruoyi-ui/src/views/travel/index.vue
+++ b/ruoyi-ui/src/views/travel/index.vue
@@ -119,7 +119,7 @@
alt=""
style="width: 35px; height: 35px;"
fit="cover"
- v-if="!scope.row.url "
+ v-if="scope.row.url"
>
<img
class="el-upload-list__item-thumbnail"
@@ -127,7 +127,7 @@
alt=""
style="width: 35px; height: 35px;"
fit="cover"
- v-if="scope.row.url "
+ v-if="!scope.row.url"
>
</template>
</el-table-column>
@@ -770,6 +770,7 @@
listTravelPrice(this.queryParams).then(response => {
this.travelpriceList = response.data.data;
+ //alert(this.travelpriceList.url)
console.log("0000")
console.log(this.travelpriceList)
this.total = response.data.total;
@@ -781,6 +782,7 @@
const promises = [];
for (const item of this.travelpriceList) {
const promise = listTravelBase({ cid: item.id }).then(result => {
+ console.log(result.data)
travelBaseMap[item.id] = result.data;
});
promises.push(promise);
diff --git a/ruoyi-ui/src/views/travel/travelInfo.vue b/ruoyi-ui/src/views/travel/travelInfo.vue
index c993b20..977ca4e 100644
--- a/ruoyi-ui/src/views/travel/travelInfo.vue
+++ b/ruoyi-ui/src/views/travel/travelInfo.vue
@@ -302,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]})
+ }
}
}
}
--
Gitblit v1.9.1