Commit 1b169213 authored by 皮倩雯's avatar 皮倩雯

fix: '修改gis默认端口号'

parent 6be385ed
Pipeline #83270 passed with stages
...@@ -10,7 +10,7 @@ const AddModal = props => { ...@@ -10,7 +10,7 @@ const AddModal = props => {
const { callBackSubmit = () => {}, type, formObj, visible, solutionNames } = props; const { callBackSubmit = () => {}, type, formObj, visible, solutionNames } = props;
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [workSpace, setWorkSpace] = useState(''); const [workSpace, setWorkSpace] = useState('');
const [serviceName, setServicename] = useState([ const [serviceName, setServicename] = useState([
{ {
value: 'geoserver', value: 'geoserver',
...@@ -115,7 +115,7 @@ const AddModal = props => { ...@@ -115,7 +115,7 @@ const AddModal = props => {
} }
setGsIp(gsIp); setGsIp(gsIp);
let localIps = ['192.168.12.7', '192.168.19.100']; let localIps = ['192.168.12.7', '192.168.19.100'];
let port = localIps.includes(gsIp) ? 8080 : 8088; let port = localIps.includes(gsIp) ? 8080 : 18088;
form.setFieldsValue({ servicename: serviceName[0].value, port, ...formObj }); form.setFieldsValue({ servicename: serviceName[0].value, port, ...formObj });
break; break;
case 'edit': case 'edit':
...@@ -214,7 +214,7 @@ const AddModal = props => { ...@@ -214,7 +214,7 @@ const AddModal = props => {
}; };
const selectIp = value => { const selectIp = value => {
let localIps = ['192.168.12.7', '192.168.19.100']; let localIps = ['192.168.12.7', '192.168.19.100'];
let port = localIps.includes(value) ? 8080 : 8088; let port = localIps.includes(value) ? 8080 : 18088;
form.setFieldsValue({ port, serviceadress: value }); form.setFieldsValue({ port, serviceadress: value });
}; };
return ( return (
...@@ -285,10 +285,10 @@ const AddModal = props => { ...@@ -285,10 +285,10 @@ const AddModal = props => {
> >
{workList.length {workList.length
? workList.map((item, index) => ( ? workList.map((item, index) => (
<Option key={index} value={item}> <Option key={index} value={item}>
{item} {item}
</Option> </Option>
)) ))
: ''} : ''}
</Select> </Select>
<Button <Button
......
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