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
ea9f206e
Commit
ea9f206e
authored
Jun 19, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常值守地图数据提取mock
parent
ca70fd68
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
13 deletions
+42
-13
data.js
src/_mock/rczsData/data.js
+32
-5
RecentStatistics.js
src/view/biz/duty/situation/RecentStatistics.js
+1
-1
Statistics.js
src/view/biz/duty/situation/Statistics.js
+9
-7
No files found.
src/_mock/rczsData/data.js
View file @
ea9f206e
...
...
@@ -60,9 +60,36 @@ export const recentData = {
}
};
export
const
chainMapData
=
{
geo
:
{
map
:
'china'
}
};
// export const chainMapData = {
// geo: {
// map: 'china'
// }
// };
//日常值守中间地图数据
export
const
alarmMapdata
=
{
//现有告警
xygjCount
:
20
,
xygjCountbh
:
5
,
//累计告警
ljgjCount
:
20
,
ljgjCountbh
:
5
,
//消缺告警
xqgjCount
:
20
,
xqgjCountbh
:
5
,
//现有隐患
xyyhCount
:
20
,
xyyhCountbh
:
5
,
//累计隐患
ljyhCount
:
20
,
ljyhCountbh
:
5
,
//治理隐患
zlyhCount
:
20
,
zlyhCountbh
:
5
};
src/view/biz/duty/situation/RecentStatistics.js
View file @
ea9f206e
...
...
@@ -219,7 +219,7 @@ class RecentStatistics extends Component {
render
()
{
debugger
;
const
{
value
}
=
this
.
state
;
const
select
=
{
backgroundColor
:
'#0C85B1'
,
color
:
'#FFF700'
};
...
...
src/view/biz/duty/situation/Statistics.js
View file @
ea9f206e
...
...
@@ -4,7 +4,7 @@ import 'echarts/map/js/china';
import
geoJson
from
'echarts/map/json/china.json'
;
import
{
geoCoordMap
,
provienceData
,
dmtData
}
from
'./../../../../_mock/rczsData/geo'
;
import
CommonCard
from
'../../../common/commonCard/CommonCard'
;
import
{
alarmMapdata
}
from
'./../../../../_mock/rczsData/data'
;
class
Statistics
extends
Component
{
constructor
(
props
)
{
...
...
@@ -292,6 +292,8 @@ class Statistics extends Component {
}
render
()
{
let
data
=
alarmMapdata
;
return
(
<
div
className
=
"statistics-view common-margin"
>
{
/* <div className='statistics-title statistics-title-content'>全国</div> */
}
...
...
@@ -301,19 +303,19 @@ class Statistics extends Component {
<
div
className
=
"statistics-banner-item"
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
xygjCount
}
<
span
>
{
alarmMapdata
.
xygjCount
}
↑
<
/span
>
<
/div
>
<
p
>
现有告警
<
/p
>
<
/div
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
ljgjCount
}
<
span
>
{
alarmMapdata
.
ljgjCountbh
}
↑
<
/span
>
<
/div
>
<
p
>
累计告警
<
/p
>
<
/div
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
xqgjCount
}
<
span
>
{
alarmMapdata
.
xqgjCountbh
}
↑
<
/span
>
<
/div
>
<
p
>
消缺告警
<
/p
>
<
/div
>
...
...
@@ -323,19 +325,19 @@ class Statistics extends Component {
<
div
className
=
"statistics-banner-item"
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
xyyhCount
}
<
span
>
{
alarmMapdata
.
xyyhCountbh
}
↑
<
/span
>
<
/div
>
<
p
>
现有隐患
<
/p
>
<
/div
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
ljyhCount
}
<
span
>
{
alarmMapdata
.
ljyhCountbh
}
↑
<
/span
>
<
/div
>
<
p
>
累计隐患
<
/p
>
<
/div
>
<
div
className
=
"statistics-banner-itemblock"
>
<
div
className
=
"statistics-text-number"
>
20
<
span
>
5
↑
<
/span
>
{
alarmMapdata
.
zlyhCount
}
<
span
>
{
alarmMapdata
.
zlyhCountbh
}
↑
<
/span
>
<
/div
>
<
p
>
治理隐患
<
/p
>
<
/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