From d56ce21d18f863592b6a453ef3354e3688c4590a Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 18 May 2026 11:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oss/oss.js | 12 +++ .../longtron/production-plan-home-order.vue | 96 +++++++++++++++---- .../production-plan-renovation-order.vue | 96 +++++++++++++++---- 3 files changed, 170 insertions(+), 34 deletions(-) diff --git a/src/api/oss/oss.js b/src/api/oss/oss.js index 9d699988..8f9bbfee 100644 --- a/src/api/oss/oss.js +++ b/src/api/oss/oss.js @@ -1,5 +1,10 @@ import { createAPI } from "@/utils/httpRequest.js"; +const resolveApiBaseUrl = () => { + const rawBaseUrl = process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl + return String(rawBaseUrl || '').replace(/\/$/, '') +} + export const updateOssRef = data => createAPI(`/sys/oss/updateOssRef`,'post',data) @@ -21,6 +26,13 @@ export const previewOssFileById = (data) => createAPI(`/oss/${data.id}`,'post',7 export const previewOssFileById2 = (data) => createAPI(`/oss/2/${data.id}`,'post',777) +export const getOssVideoStreamUrl = (id) => { + if (!id && id !== 0) { + return '' + } + return `${resolveApiBaseUrl()}/oss/video/${id}` +} + export const ossUploadNoSaveOSS = (data) => createAPI(`/oss/ossUploadNoSaveOSS`,'post',data) export const uploadWithTtpe = data => createAPI(`/oss/uploadWithTtpe`,'post',data) diff --git a/src/views/modules/longtron/production-plan-home-order.vue b/src/views/modules/longtron/production-plan-home-order.vue index a57919d1..d69a2927 100644 --- a/src/views/modules/longtron/production-plan-home-order.vue +++ b/src/views/modules/longtron/production-plan-home-order.vue @@ -123,16 +123,16 @@
- - - + + + - - + + +