Commit 79b71307 authored by 皮倩雯's avatar 皮倩雯

fix: '地图优化'

parent a8389ee5
Pipeline #61938 passed with stages
......@@ -899,21 +899,6 @@ const Map = props => {
};
const onChange1 = e => {
let aa = { ...firstList };
aa.layers.map(i => {
if (i.layerType == 'PipenetLayer') {
i.layerType = 'dynamic';
}
if (i.schemename == form.getFieldsValue().schemename) {
i.backgroundColor = color;
i.boundColor = colorList;
i.boundWidth = form.getFieldsValue().boundWidth;
i.backgroundOpacity = form.getFieldsValue().backgroundOpacity / 100;
i.layerType = 'PipenetLayer';
}
});
console.log(aa);
setFirstList({ ...aa });
setResultData(null);
if (e.target.value == 0) {
let data = form.getFieldsValue().areaName;
......@@ -930,7 +915,7 @@ const Map = props => {
console.log(keepDraw);
if (keepDraw) {
let area1 = form.getFieldsValue().areaName;
mapRef.current.changeAreaName(area1[0], keepDraw);
mapRef.current.changeAreaName(area1[area1.length - 1], keepDraw);
let data = {};
console.log(keepType);
data.type = keepType;
......@@ -949,6 +934,21 @@ const Map = props => {
}
setRadio1(e.target.value);
}
let aa = { ...firstList };
aa.layers.map(i => {
if (i.layerType == 'PipenetLayer') {
i.layerType = 'dynamic';
}
if (i.schemename == form.getFieldsValue().schemename) {
i.backgroundColor = color;
i.boundColor = colorList;
i.boundWidth = form.getFieldsValue().boundWidth;
i.backgroundOpacity = form.getFieldsValue().backgroundOpacity / 100;
i.layerType = 'PipenetLayer';
}
});
console.log(aa);
setFirstList({ ...aa });
};
const onSave = e => {
......
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