diff --git a/src/components/AlmModal/index.vue b/src/components/AlmModal/index.vue
index 66de8b1..bd37b77 100644
--- a/src/components/AlmModal/index.vue
+++ b/src/components/AlmModal/index.vue
@@ -153,6 +153,17 @@
+
+
+
![]()
+
+
@@ -182,6 +193,10 @@ export default {
// 操作按钮loading
alarmProcessing: false,
+
+ previewImageUrl: '',
+ imagePreviewVisible: false,
+
}
},
mounted() {
@@ -484,7 +499,25 @@ export default {
this.$set(this.almData[index], 'isWaiting', true)
this.$router.push('/')
- }
+ },
+
+ // 获取完整的图片URL
+ getFullImageUrl(relativePath) {
+ if (!relativePath) return '';
+
+ // 如果已经是完整URL,直接返回(兼容历史数据)
+ if (relativePath.startsWith('http')) {
+ return relativePath;
+ }
+
+ // 动态拼接当前环境的baseURL
+ const baseURL = process.env.VUE_APP_BASE_API || '';
+ return baseURL + relativePath;
+ },
+ previewImage(url) {
+ this.previewImageUrl = url
+ this.imagePreviewVisible = true
+ },
}
}