From 829f5116884f98643ffc5b2a548a600d40c0cedb Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 14 四月 2025 23:09:32 +0800
Subject: [PATCH] 处理图片显示问题
---
src/views/intelligentPatrol/studyJudge/index.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/intelligentPatrol/studyJudge/index.vue b/src/views/intelligentPatrol/studyJudge/index.vue
index 12abe43..53e5641 100644
--- a/src/views/intelligentPatrol/studyJudge/index.vue
+++ b/src/views/intelligentPatrol/studyJudge/index.vue
@@ -233,7 +233,11 @@
</div>
</div>
</div>
- <el-dialog :append-to-body="true" :visible.sync="isShowDialog" title="璋冨害淇℃伅">
+ <el-dialog
+ :append-to-body="true"
+ :visible.sync="isShowDialog"
+ title="璋冨害淇℃伅"
+ >
<MyDispatch
v-if="isShowDialog"
:mytype="1"
@@ -265,7 +269,7 @@
import basecase from "@/api/operate/basecase";
import baseInfo from "@/api/baseInfo";
import { getStoreInfoList } from "@/api/operate/storeManagement";
-import { FILE_ORIGINAL_URL } from "@/utils";
+import { FILE_ORIGINAL_PATH } from "@/utils";
import { validateCarNum } from "@/utils/validate";
import MyDispatch from "@/components/dispatch";
// import InspectionTable from "@/views/intelligentPatrol/studyJudge/inspectionTable/index.vue";
@@ -470,12 +474,10 @@
this.zoom = 18;
this.mark = { title: this.currentEvent.address };
if (this.currentEvent?.picData) {
-
- item = item.replace("http://111.1.140.92:28081/sccg/API/img?fileUrl=","")
+
this.imageList = this.currentEvent.picData
.split(",")
- .map((item) => `${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${item}`);
- // this.imageList =['https://www.shutterstock.com/image-photo/grandmother-holding-grandson-her-lap-600w-1954531321.jpg','https://www.shutterstock.com/image-photo/grandmother-holding-grandson-her-lap-600w-1954531321.jpg']
+ .map((item) => FILE_ORIGINAL_PATH + item);
}
if (this.currentEvent?.alarmTime || this.currentEvent?.currentAlarmTime) {
const { alarmTime, currentAlarmTime } = this.currentEvent;
--
Gitblit v1.8.0