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
cf4a4f32
Commit
cf4a4f32
authored
Aug 23, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '地图配置删除联动'
parent
0df189e7
Pipeline
#58347
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
index.jsx
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
+5
-1
TileConfig.jsx
...platformCenter/gis/schemeConfig/TileConfig/TileConfig.jsx
+1
-0
No files found.
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
View file @
cf4a4f32
...
@@ -150,6 +150,7 @@ const Map = props => {
...
@@ -150,6 +150,7 @@ const Map = props => {
const
[
keep
,
setKeep
]
=
useState
(
''
);
const
[
keep
,
setKeep
]
=
useState
(
''
);
const
[
keepSave
,
setKeepSave
]
=
useState
(
''
);
const
[
keepSave
,
setKeepSave
]
=
useState
(
''
);
const
[
map
,
setMap
]
=
useState
(
null
);
const
[
map
,
setMap
]
=
useState
(
null
);
const
[
color
,
setColor
]
=
useState
(
''
);
useEffect
(()
=>
{
useEffect
(()
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
...
@@ -178,6 +179,7 @@ const Map = props => {
...
@@ -178,6 +179,7 @@ const Map = props => {
schemename
:
setttings
.
schemename
,
schemename
:
setttings
.
schemename
,
exportScheme
:
setttings
.
exportScheme
||
'pandagis'
,
exportScheme
:
setttings
.
exportScheme
||
'pandagis'
,
});
});
setColor
(
setttings
.
backgroundColor
);
setRadio
(
setttings
.
exportScheme
||
'pandagis'
);
setRadio
(
setttings
.
exportScheme
||
'pandagis'
);
if
(
setttings
.
id
)
{
if
(
setttings
.
id
)
{
setKeep
(
setttings
);
setKeep
(
setttings
);
...
@@ -231,6 +233,7 @@ const Map = props => {
...
@@ -231,6 +233,7 @@ const Map = props => {
// 选择颜色
// 选择颜色
const
checkColor
=
color
=>
{
const
checkColor
=
color
=>
{
form
.
setFieldsValue
({
backgroundColor
:
color
});
form
.
setFieldsValue
({
backgroundColor
:
color
});
setColor
(
color
);
mapRef
.
current
.
updateAreaColor
(
color
);
mapRef
.
current
.
updateAreaColor
(
color
);
};
};
// 表单修改后对地图进行配置
// 表单修改后对地图进行配置
...
@@ -286,6 +289,7 @@ const Map = props => {
...
@@ -286,6 +289,7 @@ const Map = props => {
extent
:
setttings
.
extent
,
extent
:
setttings
.
extent
,
exportScheme
:
setttings
.
exportScheme
||
'pandagis'
,
exportScheme
:
setttings
.
exportScheme
||
'pandagis'
,
});
});
setColor
(
setttings
.
backgroundColor
);
setRadio
(
setttings
.
exportScheme
||
'pandagis'
);
setRadio
(
setttings
.
exportScheme
||
'pandagis'
);
mapRef
.
current
.
mapchange
(
obj
);
mapRef
.
current
.
mapchange
(
obj
);
// 清除原有接口返回后端绘制的管网图
// 清除原有接口返回后端绘制的管网图
...
@@ -470,7 +474,7 @@ const Map = props => {
...
@@ -470,7 +474,7 @@ const Map = props => {
{
colorArr
.
map
(
item
=>
(
{
colorArr
.
map
(
item
=>
(
<
div
<
div
className=
{
classnames
(
styles
.
colorBox
,
{
className=
{
classnames
(
styles
.
colorBox
,
{
[
styles
.
currentColor
]:
item
.
color
===
form
.
getFieldValue
(
'backgroundColor'
)
,
[
styles
.
currentColor
]:
item
.
color
===
color
,
})
}
})
}
key=
{
item
.
color
}
key=
{
item
.
color
}
style=
{
{
background
:
item
.
color
}
}
style=
{
{
background
:
item
.
color
}
}
...
...
src/pages/platformCenter/gis/schemeConfig/TileConfig/TileConfig.jsx
View file @
cf4a4f32
...
@@ -136,6 +136,7 @@ const TileData = props => {
...
@@ -136,6 +136,7 @@ const TileData = props => {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
setFlag
(
flag
+
1
);
setFlag
(
flag
+
1
);
setFlagAdd
(
flagAdd
+
1
);
setTreeLoading
(
false
);
setTreeLoading
(
false
);
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
// form.resetFields();
// form.resetFields();
...
...
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