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

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

parent a40ba596
Pipeline #48436 skipped with stages
......@@ -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
......
......@@ -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,
......
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