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
0df189e7
Commit
0df189e7
authored
2 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '地图bug修复'
parent
dfa2dba6
Pipeline
#58317
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.jsx
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
+5
-5
No files found.
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
View file @
0df189e7
...
...
@@ -294,7 +294,7 @@ const Map = props => {
layer
.
visible
=
false
;
}
// 若方案是后端绘制每次切换首先创建用户自定义的后端绘制管网
if
(
setttings
.
exportScheme
!=
'
web
gis'
)
{
if
(
setttings
.
exportScheme
!=
'
arc
gis'
)
{
const
pandagisaa
=
new
MapImageLayer
({
id
:
setttings
.
id
,
url
:
`/PandaGIS/MapServer/
${
setttings
.
id
}
`
,
...
...
@@ -343,7 +343,7 @@ const Map = props => {
});
return
;
}
if
(
radio
==
'
web
gis'
&&
keepSave
!=
'success'
)
{
if
(
radio
==
'
arc
gis'
&&
keepSave
!=
'success'
)
{
message
.
error
(
'请先保存管网前端绘制方案'
);
return
;
}
...
...
@@ -412,7 +412,7 @@ const Map = props => {
});
const
onChange
=
e
=>
{
if
(
e
.
target
.
value
==
'
web
gis'
)
{
if
(
e
.
target
.
value
==
'
arc
gis'
)
{
// 选择前端绘制时,如果界面有自定义的管网图就隐藏
mapInfo
.
current
.
map
.
layers
.
forEach
(
item
=>
{
if
(
item
.
layerType
&&
item
.
layerType
==
'PipenetLayertest'
)
{
...
...
@@ -489,7 +489,7 @@ const Map = props => {
<
Form
.
Item
label=
"管网方案"
name=
"exportScheme"
>
<
Radio
.
Group
onChange=
{
onChange
}
value=
{
radio
}
>
<
Radio
value=
"pandagis"
>
后端绘制
</
Radio
>
<
Radio
value=
"
web
gis"
>
前端绘制
</
Radio
>
<
Radio
value=
"
arc
gis"
>
前端绘制
</
Radio
>
</
Radio
.
Group
>
</
Form
.
Item
>
)
:
(
...
...
@@ -532,7 +532,7 @@ const Map = props => {
client=
"sandbox"
/>
)
}
{
radio
==
'
web
gis'
?
(
{
radio
==
'
arc
gis'
?
(
<
PipenetStylesCenter
schemeName=
{
Schemename
}
mapServerName=
{
name
}
...
...
This diff is collapsed.
Click to expand it.
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