提交 54700c22 作者: ZhangLingKun

功能:加盟入驻网点优化

上级 36871818
......@@ -55,7 +55,7 @@ const SelectMapModal: FC<propType> = (props) => {
}
};
// 防抖
const handleSearchDebounced = debounce(handleSearch, 500);
const handleSearchDebounced = debounce(handleSearch, 1000);
// 选择了地址
const handleSearchAddress = (e: number) => {
if (!isNaN(e)) {
......@@ -118,8 +118,12 @@ const SelectMapModal: FC<propType> = (props) => {
});
}}
onSearchAddress={(e) => {
console.log('筛选e--->', e);
setAddressList(e.map((i, j) => ({ label: i.name, value: j, data: i, searchKey })));
// console.log('筛选e--->', e);
setAddressList(
e
.filter((i) => (i.location as any) !== '')
.map((i, j) => ({ label: i.name, value: j, data: i, searchKey })),
);
}}
></MapComponent>
<div
......
......@@ -127,7 +127,6 @@ const AddEditModal: FC<propType> = (props) => {
placeholder='请选择网点地址'
maxLength={50}
allowClear
disabled
value={form.getFieldValue('address') || detail?.address}
/>
<Button
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论