From c6159b0a5a424250adeca1bc2b475da5324fe038 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期五, 18 四月 2025 17:16:30 +0800 Subject: [PATCH] fix:对接报表数据 --- src/views/facility/monitorList/index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/facility/monitorList/index.vue b/src/views/facility/monitorList/index.vue index 936c6ca..5a75b87 100644 --- a/src/views/facility/monitorList/index.vue +++ b/src/views/facility/monitorList/index.vue @@ -13,6 +13,7 @@ const route = useRoute(); const {proxy} = getCurrentInstance(); +const imgBaseUrl = import.meta.env.VITE_APP_IMG_BASEURL //图片前缀 /** * 搜索相关 @@ -148,7 +149,7 @@ //上传文件,添加图片地址信息 const uploadData = (data) => { - form.value.imageUrl = data.toString(); + form.value.imageUrl = imgBaseUrl + data.toString(); } /** 提交按钮 */ @@ -243,7 +244,7 @@ > <template #default="scope"> <div v-if="key === 'imageUrl'"> - <img :src="scope.row.headImg" class="table-headImg"/> + <img :src="imgBaseUrl + scope.row.headImg" class="table-headImg" alt="" /> </div> <div v-else-if="key === 'pointType'"> {{ scope.row.pointType === 1 ? '水温监测点' : '生态流量监测点' }} -- Gitblit v1.9.3