From 6f9548ff078afb8a9da70a3727d2067e59278ba4 Mon Sep 17 00:00:00 2001 From: douyage Date: Thu, 8 Oct 2026 10:40:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=95=E4=B8=AA=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=9A=84=E6=89=93=E5=BC=80=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=9A=84=E7=BA=A2=E5=A4=96csv=E6=96=87=E4=BB=B6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=8E=BB=E9=99=A4=E4=BB=BB=E5=8A=A1=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=9A=84=E5=AF=BC=E5=87=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../patrolpointmnt/patrolpointpreset.js | 9 ++- src/components/AsyncImageFrame/index.vue | 6 +- .../ImagePreviewZoomTemperature/index.vue | 6 +- .../taskSummary/newInspectionTaskDetail.vue | 4 ++ src/views/video/LivePreview.vue | 61 +++++++++++++++++-- src/views/video/LivePreviewEmbed.vue | 31 +++++++++- src/views/video/components/NvrDeviceTree.vue | 16 +++-- 7 files changed, 118 insertions(+), 15 deletions(-) diff --git a/src/api/basedata/patrolpointmnt/patrolpointpreset.js b/src/api/basedata/patrolpointmnt/patrolpointpreset.js index 2ab88a7..7257497 100644 --- a/src/api/basedata/patrolpointmnt/patrolpointpreset.js +++ b/src/api/basedata/patrolpointmnt/patrolpointpreset.js @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import store from '@/store'; // 初始化list export function getList(query) { return request({ @@ -135,10 +136,14 @@ export function addBoxData(data) { } // 获取csv文件 -export function downloadCsv(data) { +// 汇聚态走代理接口,stationCode 放查询参数定位目标站点;单站保持原地址 +export function downloadCsv(data, stationCode) { + const agg = !!(store.getters.fromPortal && !store.getters.inSite) + const code = stationCode || (data && data.stationCode) || store.getters.workspaceStationCode || '' return request({ - url: '/simulator/ir/downloadCsv', + url: agg ? '/agg/proxy/simulator/ir/downloadCsv' : '/simulator/ir/downloadCsv', method: 'post', + params: agg && code ? { stationCode: code } : undefined, data }) } diff --git a/src/components/AsyncImageFrame/index.vue b/src/components/AsyncImageFrame/index.vue index 5db2c04..78c4832 100644 --- a/src/components/AsyncImageFrame/index.vue +++ b/src/components/AsyncImageFrame/index.vue @@ -103,6 +103,10 @@ export default { type: Boolean, default: false, }, + stationCode: { + type: String, + default: "", + }, }, async created() {}, data() { @@ -280,7 +284,7 @@ export default { filePath: this.imgName, }; - downloadCsv(data) + downloadCsv(data, this.stationCode) .then((response) => { const blob = response instanceof Blob ? response : new Blob([response]); const reader = new FileReader(); diff --git a/src/views/cards/components/ImagePreviewZoomTemperature/index.vue b/src/views/cards/components/ImagePreviewZoomTemperature/index.vue index 02f4f3f..ca59b50 100644 --- a/src/views/cards/components/ImagePreviewZoomTemperature/index.vue +++ b/src/views/cards/components/ImagePreviewZoomTemperature/index.vue @@ -128,6 +128,10 @@ export default { type: [String, Array], default: "", }, + stationCode: { + type: String, + default: "", + }, }, data() { return { @@ -712,7 +716,7 @@ export default { try { const data = { filePath: this.selectImgUrl}; - const response = await downloadCsv(data); + const response = await downloadCsv(data, this.stationCode); const blob = response instanceof Blob ? response : new Blob([response]); const reader = new FileReader(); diff --git a/src/views/cards/taskSummary/newInspectionTaskDetail.vue b/src/views/cards/taskSummary/newInspectionTaskDetail.vue index 87877cf..74c9164 100644 --- a/src/views/cards/taskSummary/newInspectionTaskDetail.vue +++ b/src/views/cards/taskSummary/newInspectionTaskDetail.vue @@ -87,6 +87,7 @@ class="img-wrap" fit="contain" :src="selectPointInfo.imgAnalyse" + :station-code="queryParams.stationCode" :supportPreview="false" > @@ -99,6 +100,7 @@ class="img-wrap" fit="contain" :src="selectPointInfo.img" + :station-code="queryParams.stationCode" :supportPreview="false" > @@ -233,6 +235,7 @@ >重置