Commit ff24f073 authored by 皮倩雯's avatar 皮倩雯

fix: '地图配置新增配置失效问题'

parent cb71ad19
Pipeline #55762 passed with stages
......@@ -175,7 +175,11 @@ const ManagementDataBase = () => {
const handleLog = (text, val) => {
setModalTitle(val);
let arr = [];
arr.push(text.split(/(\r\n)|(\n)/).map((item, index) => <p key={index}>{item}</p>));
arr.push(
text
.split(/(\r\n)|(\n)/)
.map((item, index) => <p key={index} dangerouslySetInnerHTML={{ __html: item }} />),
);
setModalVisible(true);
// setContent(text);
setContent(arr);
......
......@@ -104,6 +104,8 @@ const AddModal = props => {
url = '//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer';
} else if (obj.type == 'streetWarm') {
url = '//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer';
} else if (obj.type == 'mapbox-i-ia') {
url = '//api.mapbox.com/v4/mapbox.satellite';
}
arr = {
servicename: obj.servicename,
......
......@@ -93,6 +93,16 @@ const NewEditModal = props => {
}),
};
} else {
let url = '';
if (obj.type == 'streetPurplishBlue') {
url = '//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetPurplishBlue/MapServer';
} else if (obj.type == 'streetGray') {
url = '//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetGray/MapServer';
} else if (obj.type == 'streetWarm') {
url = '//map.geoq.cn/ArcGIS/rest/services/ChinaOnlineStreetWarm/MapServer';
} else if (obj.type == 'mapbox-i-ia') {
url = '//api.mapbox.com/v4/mapbox.satellite';
}
arr = {
servicename: obj.servicename,
terminalType: 'base',
......@@ -100,7 +110,7 @@ const NewEditModal = props => {
jsonCfg: JSON.stringify({
alpha: alpha,
label: obj.label,
url: obj.url,
url: url,
icon: obj.icon,
type: obj.type,
extent: null,
......
......@@ -5,6 +5,8 @@
}
.leftList {
width: 500px;
height: calc(100vh - 72px);
// overflow: scroll;
}
.rightForm {
width: 100%;
......@@ -14,6 +16,7 @@
justify-content: space-between;
align-items: center;
margin-top: -12px;
margin-bottom: 25px;
padding: 10px 0;
font-size: 16px;
font-weight: bold;
......
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