Commit 9f0738a3 authored by 皮倩雯's avatar 皮倩雯

fix: '修改数据库连接添加模态样式'

parent a40ba596
Pipeline #48436 skipped with stages
...@@ -421,6 +421,7 @@ const ManagementDataBase = () => { ...@@ -421,6 +421,7 @@ const ManagementDataBase = () => {
visible={modalVisible} visible={modalVisible}
keyboard={false} keyboard={false}
maskClosable maskClosable
centered
onOk={() => setModalVisible(false)} onOk={() => setModalVisible(false)}
onCancel={() => setModalVisible(false)} onCancel={() => setModalVisible(false)}
width="1000px" width="1000px"
...@@ -442,6 +443,7 @@ const ManagementDataBase = () => { ...@@ -442,6 +443,7 @@ const ManagementDataBase = () => {
title={checkSql.TableName} title={checkSql.TableName}
visible={sqlVisible} visible={sqlVisible}
maskClosable maskClosable
centered
onOk={() => setSqlVisible(false)} onOk={() => setSqlVisible(false)}
onCancel={() => setSqlVisible(false)} onCancel={() => setSqlVisible(false)}
width="500px" width="500px"
...@@ -449,7 +451,6 @@ const ManagementDataBase = () => { ...@@ -449,7 +451,6 @@ const ManagementDataBase = () => {
minHeight: '100px', minHeight: '100px',
overflowY: 'scroll', overflowY: 'scroll',
}} }}
style={{ top: '40px' }}
footer={[ footer={[
<Button type="primary" onClick={() => copySql(checkSql.DiffSql)}> <Button type="primary" onClick={() => copySql(checkSql.DiffSql)}>
复制SQL 复制SQL
......
...@@ -48,6 +48,8 @@ const AddModal = props => { ...@@ -48,6 +48,8 @@ const AddModal = props => {
const [data, setData] = useState([]); const [data, setData] = useState([]);
const [areaData, setAreaData] = useState([]); const [areaData, setAreaData] = useState([]);
const [pickItem, setPickItem] = useState(''); const [pickItem, setPickItem] = useState('');
const [o, setO] = useState('');
const [r, setR] = useState('');
const [aa, setAa] = useState(0); const [aa, setAa] = useState(0);
const [bb, setBb] = useState(0); const [bb, setBb] = useState(0);
const [cc, setCc] = useState(0); const [cc, setCc] = useState(0);
...@@ -81,15 +83,15 @@ const AddModal = props => { ...@@ -81,15 +83,15 @@ const AddModal = props => {
baseLayer: obj.layer, baseLayer: obj.layer,
proxyUrl: obj.proxy, proxyUrl: obj.proxy,
levelStart: obj.levelStart, levelStart: obj.levelStart,
origin: obj.origin, origin: obj.origin || o,
resolution: obj.resolution, resolution: obj.resolution || r,
tileMatrix: obj.coordinate, tileMatrix: obj.coordinate,
levelEnd: obj.levelEnd, levelEnd: obj.levelEnd,
levelEndEnlarge: obj.levelEndEnlarge, levelEndEnlarge: obj.levelEndEnlarge,
m_Ip: obj.IP, m_Ip: obj.IP,
m_Port: obj.Port, m_Port: obj.Port || '8080',
m_User: obj.User, m_User: obj.User || 'admin',
m_Pwd: obj.Pwd, m_Pwd: obj.Pwd || 'geoserver',
gsAppName: obj.gis, gsAppName: obj.gis,
}), }),
}; };
...@@ -395,6 +397,8 @@ const AddModal = props => { ...@@ -395,6 +397,8 @@ const AddModal = props => {
console.log(JSON.parse(aa)[2]); console.log(JSON.parse(aa)[2]);
console.log(JSON.parse(aa)[3]); console.log(JSON.parse(aa)[3]);
console.log(JSON.parse(aa).toString()); console.log(JSON.parse(aa).toString());
setO(`-${JSON.parse(aa)[2]},${JSON.parse(aa)[3]}`);
setR(res.results.resolutions);
form.setFieldsValue({ form.setFieldsValue({
range: JSON.parse(aa).toString(), range: JSON.parse(aa).toString(),
resolution: res.results.resolutions, resolution: res.results.resolutions,
......
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