dev_1.2
tangjie 2026-07-29 16:14:58 +08:00
parent 1ed729316b
commit 05d87f6524
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -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: "属地",