Commit 8cb125c6 authored by 皮倩雯's avatar 皮倩雯

fix: '集成登录地区选则中华人民共和国bug修复'

parent d1eb41fe
Pipeline #57788 passed with stages
......@@ -133,7 +133,11 @@ const AddModal = props => {
result.districtList[0].districtList.push({
adcode: '100000',
name: '中华人民共和国',
center: { pos: [11330151.428933946, 4386623.239690046] },
center: {
pos: [11330151.428933946, 4386623.239690046],
lat: '39.915085',
lng: '116.3683244',
},
});
console.log(result.districtList[0].districtList);
let data = [];
......@@ -392,6 +396,7 @@ const AddModal = props => {
const onChangeField = (value, selectedOptions) => {
console.log(selectedOptions);
console.log(value);
let aa = selectedOptions[selectedOptions.length - 1].lastpos;
form.setFieldsValue({ coordinate: aa });
};
......@@ -616,7 +621,10 @@ const AddModal = props => {
let aa = form.getFieldValue().mapSetting;
if (aa) {
let list = keepLength.find(i => i[0] == aa[0]);
if (list.length > 0) {
console.log(list);
console.log(aa);
if (list) {
if (aa.length <= list.length) {
return Promise.reject('请选择下级');
}
......
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