dev_1.2
tangjie 2026-07-29 17:29:33 +08:00
parent 05d87f6524
commit 66155d78a2
4 changed files with 7 additions and 7 deletions

View File

@ -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`;

View File

@ -145,6 +145,7 @@ const InternalReviewContent = (props) => {
size="small"
style={{ width: 130 }}
allowClear
defaultValue={'conform_to'}
placeholder="请选择结论"
onChange={(v) => updateRow(idx, "reviewConclusion", v)}
>

View File

@ -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)}

View File

@ -4,7 +4,7 @@
left: 0;
width: 100%;
height: 100%;
z-index: 99;
z-index: 101;
}
.WpsEditor-flexContainer {