From 66155d78a24e446c3ca61aaf93b068adb24c6c94 Mon Sep 17 00:00:00 2001 From: tangjie <122778500@qq.com> Date: Wed, 29 Jul 2026 17:29:33 +0800 Subject: [PATCH] feat --- src/components/BaiduMapPicker/index.js | 10 ++++------ .../ProjectFlow/InternalReviewContent.js | 1 + .../ProjectFlow/TechnicalReviewContent.js | 1 + src/pages/Container/WpsEditor/index.less | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/BaiduMapPicker/index.js b/src/components/BaiduMapPicker/index.js index 3c22673..6174126 100644 --- a/src/components/BaiduMapPicker/index.js +++ b/src/components/BaiduMapPicker/index.js @@ -10,6 +10,10 @@ const BaiduMapPicker = ({ visible, onCancel, onConfirm }) => { const [selectedPoint, setSelectedPoint] = useState(null); const [selectedAddress, setSelectedAddress] = useState(""); + window.__onBMapLoaded = () => { + setLoaded(true); + }; + // 动态加载百度地图脚本 useEffect(() => { if (!visible) return; @@ -22,24 +26,18 @@ const BaiduMapPicker = ({ visible, onCancel, onConfirm }) => { const scriptId = "baiduMapScript"; if (document.getElementById(scriptId)) return; - window.__onBMapLoaded = () => { - setLoaded(true); - }; - const callback = async () => { await window.base.loadDynamicResource({ url: `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`, type: "script", attr: { type: "text/javascript" }, }); - }; if (window?.base?.loadDynamicResource) { callback(); return; } - const script = document.createElement("script"); script.id = scriptId; script.src = `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`; diff --git a/src/pages/Container/SafetyEvalBusiness/ProjectFlow/InternalReviewContent.js b/src/pages/Container/SafetyEvalBusiness/ProjectFlow/InternalReviewContent.js index ab6706f..d1b15d6 100644 --- a/src/pages/Container/SafetyEvalBusiness/ProjectFlow/InternalReviewContent.js +++ b/src/pages/Container/SafetyEvalBusiness/ProjectFlow/InternalReviewContent.js @@ -145,6 +145,7 @@ const InternalReviewContent = (props) => { size="small" style={{ width: 130 }} allowClear + defaultValue={'conform_to'} placeholder="请选择结论" onChange={(v) => updateRow(idx, "reviewConclusion", v)} > diff --git a/src/pages/Container/SafetyEvalBusiness/ProjectFlow/TechnicalReviewContent.js b/src/pages/Container/SafetyEvalBusiness/ProjectFlow/TechnicalReviewContent.js index 348adef..d485e36 100644 --- a/src/pages/Container/SafetyEvalBusiness/ProjectFlow/TechnicalReviewContent.js +++ b/src/pages/Container/SafetyEvalBusiness/ProjectFlow/TechnicalReviewContent.js @@ -143,6 +143,7 @@ const TechnicalReviewContent = (props) => { value={val} size="small" style={{ width: 130 }} + defaultValue={'conform_to'} allowClear placeholder="请选择结论" onChange={(v) => updateRow(idx, "reviewConclusion", v)} diff --git a/src/pages/Container/WpsEditor/index.less b/src/pages/Container/WpsEditor/index.less index 1358764..a8a74c8 100644 --- a/src/pages/Container/WpsEditor/index.less +++ b/src/pages/Container/WpsEditor/index.less @@ -4,7 +4,7 @@ left: 0; width: 100%; height: 100%; - z-index: 99; + z-index: 101; } .WpsEditor-flexContainer {