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
21bc9d3b
Commit
21bc9d3b
authored
May 09, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 注释地图配置
parent
b28aaee8
Pipeline
#49734
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
27 deletions
+11
-27
SchemeConfig.jsx
src/pages/platformCenter/gis/schemeConfig/SchemeConfig.jsx
+2
-25
index.jsx
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
+9
-2
No files found.
src/pages/platformCenter/gis/schemeConfig/SchemeConfig.jsx
View file @
21bc9d3b
/*
* @Description:
* @Author: leizhe
* @Date: 2022-01-13 10:47:32
* @LastEditTime: 2022-05-07 18:46:40
* @LastEditors: Please set LastEditors
*/
import
{
Tabs
,
Button
}
from
'antd'
;
import
React
from
'react'
;
import
PageContainer
from
'@/components/BasePageContainer'
;
...
...
@@ -14,15 +7,11 @@ import VectorData from './VectorData/VectorData';
import
ProjectMessage
from
'./projectMessage/projectMessage'
;
import
SolutionConfig
from
'./solutionConfig/solutionConfig'
;
import
ScopeMap
from
'./ScopeMap/index'
;
import
{
isDev
}
from
'@/utils/tools'
;
const
{
TabPane
}
=
Tabs
;
const
SchemeConfig
=
()
=>
{
const
callback
=
()
=>
{};
const
iframeUrl
=
'/web4/?widget=product/Tool/EditBoundary/EditBoundary&serverCollextion=luanzhou,jiangninggwtest&solution=熊猫智慧水务平台'
;
console
.
log
(
process
.
env
.
HOST
,
'process.env.PROXY'
);
return
(
<
PageContainer
>
<
div
className=
{
styles
.
container
}
>
...
...
@@ -39,21 +28,9 @@ const SchemeConfig = () => {
<
TabPane
tab=
"方案配置"
key=
"4"
>
<
SolutionConfig
/>
</
TabPane
>
<
TabPane
tab=
"范围配置"
key=
"5"
>
{
/*
<TabPane tab="范围配置" key="5">
<ScopeMap />
{
/* <div
style={{
width: '100%',
height: 'calc(100vh - 160px)',
}}
>
<iframe
src={`${isDev ? 'http://192.168.12.140:8081' : window.location.origin}${iframeUrl}`}
width="99%"
height="99%"
/>
</div> */
}
</
TabPane
>
</TabPane> */
}
</
Tabs
>
</
div
>
</
PageContainer
>
...
...
src/pages/platformCenter/gis/schemeConfig/ScopeMap/index.jsx
View file @
21bc9d3b
/* eslint-disable no-new */
import
React
,
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
{
ArcGISMap
,
Drawtool
,
geomUtils
}
from
'@wisdom-map/arcgismap'
;
import
{
isDev
}
from
'@/utils/tools'
;
import
{
Form
,
Input
,
Slider
,
InputNumber
,
Select
,
Button
,
Cascader
,
notification
}
from
'antd'
;
import
classnames
from
'classnames'
;
import
{
GetWebSiteConfig
}
from
'@/services/gis/gis'
;
...
...
@@ -27,7 +27,8 @@ const Map = props => {
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
mapRef
=
useRef
();
const
mapInfo
=
useRef
(
null
);
// const iframeUrl =
// '/web4/?widget=product/Tool/EditBoundary/EditBoundary&serverCollextion=luanzhou,jiangninggwtest&solution=熊猫智慧水务平台';
useEffect
(()
=>
{
GetWebSiteConfig
({
client
:
'sandbox'
}).
then
(
res
=>
{
console
.
log
(
res
.
data
[
0
].
mapsettings
,
'res.data[0].mapsettings'
);
...
...
@@ -214,6 +215,12 @@ const Map = props => {
return
(
<
div
>
<
div
className=
{
styles
.
mapContent
}
>
{
/* <iframe
title="范围配置"
src={`${isDev ? 'http://192.168.12.140:8081' : window.location.origin}${iframeUrl}`}
width="99%"
height="99%"
/> */
}
<
div
className=
{
styles
.
mapTool
}
>
<
Form
form=
{
form
}
...
...
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