feat
parent
1ed729316b
commit
05d87f6524
|
|
@ -22,21 +22,23 @@ 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" },
|
||||||
});
|
});
|
||||||
setLoaded(true);
|
|
||||||
};
|
};
|
||||||
if (window?.base?.loadDynamicResource) {
|
if (window?.base?.loadDynamicResource) {
|
||||||
callback();
|
callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.__onBMapLoaded = () => {
|
|
||||||
setLoaded(true);
|
|
||||||
};
|
|
||||||
|
|
||||||
const script = document.createElement("script");
|
const script = document.createElement("script");
|
||||||
script.id = scriptId;
|
script.id = scriptId;
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ const CustomerManage = (props) => {
|
||||||
width: 220,
|
width: 220,
|
||||||
},
|
},
|
||||||
{ title: "统一社会信用代码", dataIndex: "creditCode", width: 220 },
|
{ title: "统一社会信用代码", dataIndex: "creditCode", width: 220 },
|
||||||
{ title: "客户联系人", dataIndex: "principalName", width: 150 },
|
{ title: "主要负责人", dataIndex: "principalName", width: 150 },
|
||||||
{ title: "联系人电话", dataIndex: "principalPhone", width: 160 },
|
{ title: "联系人电话", dataIndex: "principalPhone", width: 160 },
|
||||||
{
|
{
|
||||||
title: "属地",
|
title: "属地",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue