Commit 5be3b9d8 authored by 皮倩雯's avatar 皮倩雯

fix: '集成登录"

parent 3882ac29
Pipeline #57217 passed with stages
......@@ -382,6 +382,15 @@ const AddModal = props => {
value: 'http://{IP:端口}/web4/?client={client}',
},
];
const onChangeField = (value, selectedOptions) => {
console.log(value);
console.log(value[value.length - 1]);
let aa = value[value.length - 1].split(',');
form.setFieldsValue({ coordinate1: aa[0], coordinate2: aa[1] });
console.log(aa);
console.log(selectedOptions);
};
return (
<Modal
title={type === 'add' ? '新增网站' : '编辑网站'}
......@@ -544,6 +553,7 @@ const AddModal = props => {
placeholder="请选择行政区"
changeOnSelect
allowClear={false}
onChange={onChangeField}
/>
</Item>
<Item label="坐标">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment