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
f6f0da19
Commit
f6f0da19
authored
Aug 09, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '数据库初始化优化'
parent
bdf9bd9d
Pipeline
#57232
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
DatabaseInitialization.jsx
...atabase/databaseInitialization/DatabaseInitialization.jsx
+5
-1
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+2
-10
No files found.
src/pages/database/databaseInitialization/DatabaseInitialization.jsx
View file @
f6f0da19
...
...
@@ -484,7 +484,11 @@ const DatabaseInitialization = props => {
description
:
'数据库初始化成功'
,
});
setDbExists
(
true
);
setkeepNumber
(
'已使用'
);
console
.
log
(
keepNumber
);
if
(
keepNumber
!=
''
)
{
setkeepNumber
(
'已使用'
);
}
// setkeepNa('');
// setkeepMsg('');
// setkeepCo('');
...
...
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
f6f0da19
...
...
@@ -100,12 +100,9 @@ const AddModal = props => {
const
getMap
=
()
=>
{
GetIntegratedloginSetting
().
then
(
res
=>
{
console
.
log
(
res
.
data
);
if
(
res
.
data
.
displayMode
==
'地图'
)
{
console
.
log
(
res
.
data
.
mapSettings
);
let
list
=
[];
let
listSecord
=
[];
let
list
=
[];
// 存省数据
let
listSecord
=
[];
// 存市数据
let
fff
=
0
;
res
.
data
.
mapSettings
.
map
(
i
=>
{
list
.
push
(
i
[
0
]);
...
...
@@ -113,8 +110,6 @@ const AddModal = props => {
listSecord
.
push
(
i
[
1
]);
}
});
console
.
log
(
list
);
console
.
log
(
listSecord
);
if
(
list
.
indexOf
(
'100000'
)
!=
-
1
)
{
fff
=
1
;
}
...
...
@@ -161,7 +156,6 @@ const AddModal = props => {
});
}
});
console
.
log
(
fff
);
if
(
fff
==
0
)
{
data
.
map
(
i
=>
{
let
aa
=
[];
...
...
@@ -172,10 +166,8 @@ const AddModal = props => {
}
});
});
console
.
log
(
result
.
districtList
[
0
].
districtList
);
setOptionsList
(
data
);
}
else
{
console
.
log
(
result
.
districtList
[
0
].
districtList
);
setOptionsList
(
result
.
districtList
[
0
].
districtList
);
}
...
...
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