feat
parent
05d87f6524
commit
66155d78a2
|
|
@ -10,6 +10,10 @@ const BaiduMapPicker = ({ visible, onCancel, onConfirm }) => {
|
||||||
const [selectedPoint, setSelectedPoint] = useState(null);
|
const [selectedPoint, setSelectedPoint] = useState(null);
|
||||||
const [selectedAddress, setSelectedAddress] = useState("");
|
const [selectedAddress, setSelectedAddress] = useState("");
|
||||||
|
|
||||||
|
window.__onBMapLoaded = () => {
|
||||||
|
setLoaded(true);
|
||||||
|
};
|
||||||
|
|
||||||
// 动态加载百度地图脚本
|
// 动态加载百度地图脚本
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!visible) return;
|
if (!visible) return;
|
||||||
|
|
@ -22,24 +26,18 @@ const BaiduMapPicker = ({ visible, onCancel, onConfirm }) => {
|
||||||
const scriptId = "baiduMapScript";
|
const scriptId = "baiduMapScript";
|
||||||
if (document.getElementById(scriptId)) return;
|
if (document.getElementById(scriptId)) return;
|
||||||
|
|
||||||
window.__onBMapLoaded = () => {
|
|
||||||
setLoaded(true);
|
|
||||||
};
|
|
||||||
|
|
||||||
const callback = async () => {
|
const callback = async () => {
|
||||||
await window.base.loadDynamicResource({
|
await window.base.loadDynamicResource({
|
||||||
url: `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`,
|
url: `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`,
|
||||||
type: "script",
|
type: "script",
|
||||||
attr: { type: "text/javascript" },
|
attr: { type: "text/javascript" },
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
if (window?.base?.loadDynamicResource) {
|
if (window?.base?.loadDynamicResource) {
|
||||||
callback();
|
callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
script.id = scriptId;
|
script.id = scriptId;
|
||||||
script.src = `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`;
|
script.src = `https://api.map.baidu.com/api?v=3.0&ak=6lkWDSnHTCcvUenZhovQPER9nkhFfT9A&callback=__onBMapLoaded`;
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ const InternalReviewContent = (props) => {
|
||||||
size="small"
|
size="small"
|
||||||
style={{ width: 130 }}
|
style={{ width: 130 }}
|
||||||
allowClear
|
allowClear
|
||||||
|
defaultValue={'conform_to'}
|
||||||
placeholder="请选择结论"
|
placeholder="请选择结论"
|
||||||
onChange={(v) => updateRow(idx, "reviewConclusion", v)}
|
onChange={(v) => updateRow(idx, "reviewConclusion", v)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,7 @@ const TechnicalReviewContent = (props) => {
|
||||||
value={val}
|
value={val}
|
||||||
size="small"
|
size="small"
|
||||||
style={{ width: 130 }}
|
style={{ width: 130 }}
|
||||||
|
defaultValue={'conform_to'}
|
||||||
allowClear
|
allowClear
|
||||||
placeholder="请选择结论"
|
placeholder="请选择结论"
|
||||||
onChange={(v) => updateRow(idx, "reviewConclusion", v)}
|
onChange={(v) => updateRow(idx, "reviewConclusion", v)}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
z-index: 99;
|
z-index: 101;
|
||||||
}
|
}
|
||||||
|
|
||||||
.WpsEditor-flexContainer {
|
.WpsEditor-flexContainer {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue