Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
station-elec-manage-view
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
station
station-elec-manage-view
Commits
294792dc
Commit
294792dc
authored
Jun 19, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix map bug
parent
e6adbd81
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
situation.scss
src/styles/view/biz/situation/situation.scss
+12
-0
Statistics.js
src/view/biz/duty/situation/Statistics.js
+5
-11
No files found.
src/styles/view/biz/situation/situation.scss
View file @
294792dc
...
...
@@ -166,6 +166,14 @@
height
:
vh
(
600
);
position
:
relative
;
.div-map-echarts
{
margin-left
:
10%
;
height
:
89%
!
important
;
width
:
74%
!
important
;
top
:
6%
;
}
.statistics-banner
{
position
:
absolute
;
left
:
vw
(
95
);
...
...
@@ -176,6 +184,8 @@
justify-content
:
space-between
;
z-index
:
2
;
.statistics-banner-content
{
height
:
vh
(
100
);
width
:
vw
(
380
);
...
...
@@ -222,6 +232,8 @@
}
}
}
}
.risk-trend-view
{
...
...
src/view/biz/duty/situation/Statistics.js
View file @
294792dc
import
React
,
{
Component
}
from
'react'
;
import
echarts
from
'echarts/lib/echarts'
;
import
ReactEcharts
from
'amos-viz/lib/echarts'
;
//此项必须导入,否则地图无法显示
import
'echarts/map/js/china'
;
import
{
dataList
,
dmtData
}
from
'./../../../../_mock/rczsData/geo'
;
import
CommonCard
from
'../../../common/commonCard/CommonCard'
;
...
...
@@ -16,7 +17,7 @@ class Statistics extends Component {
}
componentDidMount
()
{
this
.
initalECharts
();
}
getOption
=
()
=>
{
...
...
@@ -116,14 +117,6 @@ class Statistics extends Component {
}
initalECharts
()
{
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'mainMap'
));
myChart
.
setOption
(
this
.
getOption
());
myChart
.
on
(
'click'
,
function
(
params
)
{
alert
(
params
.
name
);
});
}
convert
()
{
return
'1'
;
}
...
...
@@ -187,7 +180,8 @@ class Statistics extends Component {
<
/div
>
<
/div
>
{
/* <MapChart option={option123} style={{ height: '100%', width: '100%' }} /> */
}
<
div
id
=
"mainMap"
style
=
{{
width
:
'90%'
,
height
:
'86%'
,
margin
:
'0 auto'
,
paddingTop
:
'3%'
}}
><
/div
>
<
ReactEcharts
option
=
{
this
.
getOption
()}
className
=
"div-map-echarts"
/>
<
/CommonCard
>
<
/div
>
);
...
...
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