Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
8cb125c6
Commit
8cb125c6
authored
Aug 16, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '集成登录地区选则中华人民共和国bug修复'
parent
d1eb41fe
Pipeline
#57788
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+10
-2
No files found.
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
8cb125c6
...
...
@@ -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
(
'请选择下级'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment