From 4d54b425f214bc534835ca17e6b7884e002f4fd8 Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Mon, 10 Aug 2026 14:15:58 +0800 Subject: [PATCH] feat --- jjb.config.js | 4 +- src/components/FilePreviewModal/index.js | 108 ------------------ .../FilingForm/components/FilingUpload.jsx | 43 ------- 3 files changed, 2 insertions(+), 153 deletions(-) delete mode 100644 src/components/FilePreviewModal/index.js delete mode 100644 src/pages/Container/QualApplication/FilingForm/components/FilingUpload.jsx diff --git a/jjb.config.js b/jjb.config.js index 869cda1..5a25827 100644 --- a/jjb.config.js +++ b/jjb.config.js @@ -10,9 +10,9 @@ module.exports = { javaGitBranch: "dev", // 本地联调 safetyEval-service(context-path: /safetyEval,默认端口 8095) // 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095 - API_HOST: "http://localhost:80", + //API_HOST: "http://localhost:80", - // API_HOST: "http://192.168.0.134", + API_HOST: "http://192.168.0.134", // API_HOST: "http://192.168.0.150", //太浅 // API_HOST: "http://192.168.0.152", //API_HOST: "http://192.168.0.103", //huwei diff --git a/src/components/FilePreviewModal/index.js b/src/components/FilePreviewModal/index.js deleted file mode 100644 index b286844..0000000 --- a/src/components/FilePreviewModal/index.js +++ /dev/null @@ -1,108 +0,0 @@ -import { Image, Modal } from "antd"; - -function resolveUrl(raw) { - if (!raw) return ""; - const u = String(raw); - if (/^https?:\/\//i.test(u)) return u; - const base = window.fileUrl || ""; - return base ? `${base}${u}` : u; -} - -export function getFilePreviewType(url = "", fileName = "") { - const hint = `${fileName || ""} ${url || ""}`.toLowerCase(); - if (/\.(jpe?g|png|gif|webp|bmp)(\?|#|$)/i.test(hint)) { - return "image"; - } - return "other"; -} - -export function FilePreviewContent({ url, fileName, style }) { - const resolved = resolveUrl(url); - if (!resolved) { - return ( -