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
9f0738a3
Commit
9f0738a3
authored
Apr 22, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改数据库连接添加模态样式'
parent
a40ba596
Pipeline
#48436
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
ManagementDataBase.jsx
src/pages/database/ManagementDataBase/ManagementDataBase.jsx
+2
-1
AddModal.jsx
...s/platformCenter/gis/schemeConfig/TileConfig/AddModal.jsx
+9
-5
No files found.
src/pages/database/ManagementDataBase/ManagementDataBase.jsx
View file @
9f0738a3
...
...
@@ -421,6 +421,7 @@ const ManagementDataBase = () => {
visible=
{
modalVisible
}
keyboard=
{
false
}
maskClosable
centered
onOk=
{
()
=>
setModalVisible
(
false
)
}
onCancel=
{
()
=>
setModalVisible
(
false
)
}
width=
"1000px"
...
...
@@ -442,6 +443,7 @@ const ManagementDataBase = () => {
title=
{
checkSql
.
TableName
}
visible=
{
sqlVisible
}
maskClosable
centered
onOk=
{
()
=>
setSqlVisible
(
false
)
}
onCancel=
{
()
=>
setSqlVisible
(
false
)
}
width=
"500px"
...
...
@@ -449,7 +451,6 @@ const ManagementDataBase = () => {
minHeight
:
'100px'
,
overflowY
:
'scroll'
,
}
}
style=
{
{
top
:
'40px'
}
}
footer=
{
[
<
Button
type=
"primary"
onClick=
{
()
=>
copySql
(
checkSql
.
DiffSql
)
}
>
复制SQL
...
...
src/pages/platformCenter/gis/schemeConfig/TileConfig/AddModal.jsx
View file @
9f0738a3
...
...
@@ -48,6 +48,8 @@ const AddModal = props => {
const
[
data
,
setData
]
=
useState
([]);
const
[
areaData
,
setAreaData
]
=
useState
([]);
const
[
pickItem
,
setPickItem
]
=
useState
(
''
);
const
[
o
,
setO
]
=
useState
(
''
);
const
[
r
,
setR
]
=
useState
(
''
);
const
[
aa
,
setAa
]
=
useState
(
0
);
const
[
bb
,
setBb
]
=
useState
(
0
);
const
[
cc
,
setCc
]
=
useState
(
0
);
...
...
@@ -81,15 +83,15 @@ const AddModal = props => {
baseLayer
:
obj
.
layer
,
proxyUrl
:
obj
.
proxy
,
levelStart
:
obj
.
levelStart
,
origin
:
obj
.
origin
,
resolution
:
obj
.
resolution
,
origin
:
obj
.
origin
||
o
,
resolution
:
obj
.
resolution
||
r
,
tileMatrix
:
obj
.
coordinate
,
levelEnd
:
obj
.
levelEnd
,
levelEndEnlarge
:
obj
.
levelEndEnlarge
,
m_Ip
:
obj
.
IP
,
m_Port
:
obj
.
Port
,
m_User
:
obj
.
User
,
m_Pwd
:
obj
.
Pwd
,
m_Port
:
obj
.
Port
||
'8080'
,
m_User
:
obj
.
User
||
'admin'
,
m_Pwd
:
obj
.
Pwd
||
'geoserver'
,
gsAppName
:
obj
.
gis
,
}),
};
...
...
@@ -395,6 +397,8 @@ const AddModal = props => {
console
.
log
(
JSON
.
parse
(
aa
)[
2
]);
console
.
log
(
JSON
.
parse
(
aa
)[
3
]);
console
.
log
(
JSON
.
parse
(
aa
).
toString
());
setO
(
`-
${
JSON
.
parse
(
aa
)[
2
]}
,
${
JSON
.
parse
(
aa
)[
3
]}
`
);
setR
(
res
.
results
.
resolutions
);
form
.
setFieldsValue
({
range
:
JSON
.
parse
(
aa
).
toString
(),
resolution
:
res
.
results
.
resolutions
,
...
...
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