Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
79b71307
Commit
79b71307
authored
Oct 18, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '地图优化'
parent
a8389ee5
Pipeline
#61938
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
index.jsx
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
+16
-16
No files found.
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
View file @
79b71307
...
...
@@ -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
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment