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
20613542
Commit
20613542
authored
May 27, 2020
by
zhengjiangtao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/station/station-elec-manage-view
into developer
parents
4e85a43b
9c3c23f1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
96 additions
and
56 deletions
+96
-56
report.20200525.173259.11892.0.001.json
report.20200525.173259.11892.0.001.json
+0
-0
report.20200526.130100.16728.0.001.json
report.20200526.130100.16728.0.001.json
+0
-0
customRoutes.js
src/routes/customRoutes.js
+0
-3
detail.scss
src/styles/view/biz/detail/detail.scss
+0
-0
index.scss
src/styles/view/biz/index.scss
+1
-0
index.js
src/view/biz/duty/detail/index.js
+24
-20
riskDetail.js
src/view/biz/duty/detail/riskDetail.js
+25
-23
GrowthStatistics.js
src/view/biz/duty/situation/GrowthStatistics.js
+2
-0
RecentStatistics.js
src/view/biz/duty/situation/RecentStatistics.js
+2
-0
RiskFailure.js
src/view/biz/duty/situation/RiskFailure.js
+2
-0
SafetyRate.js
src/view/biz/duty/situation/SafetyRate.js
+8
-3
index.js
src/view/biz/duty/situation/index.js
+32
-7
No files found.
report.20200525.173259.11892.0.001.json
0 → 100644
View file @
20613542
This diff is collapsed.
Click to expand it.
report.20200526.130100.16728.0.001.json
0 → 100644
View file @
20613542
This diff is collapsed.
Click to expand it.
src/routes/customRoutes.js
View file @
20613542
import
combineRoutes
from
'amos-pluggable/lib/combineRoutes'
;
import
combineRoutes
from
'amos-pluggable/lib/combineRoutes'
;
/**
/**
* 系统自定义路由
* 系统自定义路由
*/
*/
export
const
customRoutes
=
[
export
const
customRoutes
=
[
];
];
...
@@ -16,7 +14,6 @@ export const customRoutes = [
...
@@ -16,7 +14,6 @@ export const customRoutes = [
* const stage = parseText(pathMapping.stage, { objkey });
* const stage = parseText(pathMapping.stage, { objkey });
*/
*/
export
const
pathMapping
=
{
export
const
pathMapping
=
{
};
};
export
const
activitiMapping
=
{
export
const
activitiMapping
=
{
...
...
src/styles/view/biz/detail/detail.scss
View file @
20613542
This diff is collapsed.
Click to expand it.
src/styles/view/biz/index.scss
View file @
20613542
@import
'./situation/situation.scss'
;
@import
'./situation/situation.scss'
;
@import
'./detail/detail.scss'
;
.biz-view-root
{
.biz-view-root
{
height
:
100%
;
height
:
100%
;
background
:
url('/src/assets/bg/biz-bg.png')
no-repeat
;
background
:
url('/src/assets/bg/biz-bg.png')
no-repeat
;
...
...
src/view/biz/duty/detail/index.js
View file @
20613542
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
Layout
}
from
'amos-framework'
;
import
{
Layout
,
Search
}
from
'amos-framework'
;
import
{
Input
,
Table
,
Button
}
from
'amos-antd'
;
import
{
Input
,
Table
,
Button
}
from
'amos-antd'
;
import
'./../../../../styles/view/biz/detail/detail.scss'
;
import
JsonData
from
'./data'
;
import
JsonData
from
'./data'
;
import
RiskAssessment
from
'./riskDetail'
;
import
RiskAssessment
from
'./riskDetail'
;
...
@@ -22,14 +21,20 @@ class CentralInfoView extends Component {
...
@@ -22,14 +21,20 @@ class CentralInfoView extends Component {
riskVisable
:
'none'
,
riskVisable
:
'none'
,
buttonVisable
:
'block'
,
buttonVisable
:
'block'
,
type
:
''
,
//当前表格类型
type
:
''
,
//当前表格类型
detailTitle
:
''
detailTitle
:
''
,
};
};
}
}
componentDidMount
(){
this
.
props
.
onRef
&&
this
.
props
.
onRef
(
this
)
}
/**
/**
* 安全指数详情
* 安全指数详情
*/
*/
kpsi
=
()
=>
{
kpsi
=
(
values
)
=>
{
console
.
log
(
values
);
this
.
setState
({
this
.
setState
({
title
:
"安全指数"
,
title
:
"安全指数"
,
divVisable
:
'block'
,
divVisable
:
'block'
,
...
@@ -98,7 +103,7 @@ class CentralInfoView extends Component {
...
@@ -98,7 +103,7 @@ class CentralInfoView extends Component {
dataIndex
:
'ka'
,
dataIndex
:
'ka'
,
width
:
100
,
width
:
100
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
<
div
style
=
{{
color
:
'yellow'
}}
>
{
text
}
<
/div>
)
return
(
<
div
style
=
{{
color
:
'yellow'
,
fontWeight
:
'normal'
}}
>
{
text
}
<
/div>
)
}
}
},
},
{
{
...
@@ -167,7 +172,7 @@ class CentralInfoView extends Component {
...
@@ -167,7 +172,7 @@ class CentralInfoView extends Component {
dataIndex
:
'ka'
,
dataIndex
:
'ka'
,
width
:
100
,
width
:
100
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
<
div
style
=
{{
color
:
'yellow'
}}
>
{
text
}
<
/div>
)
return
(
<
div
style
=
{{
color
:
'yellow'
,
fontWeight
:
'normal'
}}
>
{
text
}
<
/div>
)
}
}
},
},
{
{
...
@@ -234,7 +239,10 @@ class CentralInfoView extends Component {
...
@@ -234,7 +239,10 @@ class CentralInfoView extends Component {
{
{
title
:
'换流站'
,
title
:
'换流站'
,
dataIndex
:
'da'
,
dataIndex
:
'da'
,
width
:
120
width
:
120
,
render
:
(
text
,
record
)
=>
{
return
(
<
div
style
=
{{
fontWeight
:
'normal'
}}
>
{
text
}
<
/div>
)
}
},
},
{
{
title
:
'告警'
,
title
:
'告警'
,
...
@@ -255,7 +263,10 @@ class CentralInfoView extends Component {
...
@@ -255,7 +263,10 @@ class CentralInfoView extends Component {
{
{
title
:
'换流站'
,
title
:
'换流站'
,
dataIndex
:
'sa'
,
dataIndex
:
'sa'
,
width
:
100
width
:
100
,
render
:
(
text
,
record
)
=>
{
return
(
<
div
style
=
{{
fontWeight
:
'normal'
}}
>
{
text
}
<
/div>
)
}
},
},
{
{
title
:
'类型'
,
title
:
'类型'
,
...
@@ -374,29 +385,22 @@ class CentralInfoView extends Component {
...
@@ -374,29 +385,22 @@ class CentralInfoView extends Component {
const
_pageNation
=
{
pageSize
:
pageSize
,
size
:
'small'
,
showTotal
:
this
.
showTotalPage
};
const
_pageNation
=
{
pageSize
:
pageSize
,
size
:
'small'
,
showTotal
:
this
.
showTotalPage
};
return
(
return
(
<
div
>
<
div
>
<
div
style
=
{{
display
:
buttonVisable
}}
>
<
Button
onClick
=
{
this
.
kpsi
}
>
安全指数
<
/Button
>
<
Button
onClick
=
{
this
.
safetyRiskFailure
}
>
安全风险失效
<
/Button
>
<
Button
onClick
=
{
this
.
dangerWeekCensus
}
>
告警隐患周增幅统计
<
/Button
>
<
Button
onClick
=
{
this
.
sevenDaysRiskCensus
}
>
七日风险统计
<
/Button
>
<
/div
>
<
div
className
=
"mainContent"
style
=
{{
display
:
divVisable
}}
>
<
div
className
=
"mainContent"
style
=
{{
display
:
divVisable
}}
>
<
Layout
>
<
Layout
>
<
Header
className
=
"contentHeader"
>
<
Header
className
=
"contentHeader"
>
<
div
className
=
"headerLeft"
style
=
{{
display
:
'inline'
}}
>
{
title
}
<
/div
>
<
div
className
=
"headerLeft"
style
=
{{
display
:
'inline'
}}
>
{
title
}
<
/div
>
<
div
className
=
"headerRight"
style
=
{{
display
:
'inline'
}}
>
<
div
className
=
"headerRight"
style
=
{{
display
:
'inline'
}}
>
<
img
src
=
"/src/assets/detail/close.png"
onClick
=
{
this
.
closeDiv
}
width
=
"
36px"
/>
<
img
src
=
"/src/assets/detail/close.png"
onClick
=
{
this
.
closeDiv
}
width
=
"
42px"
style
=
{{
marginTop
:
'5px'
}}
/
>
<
/div
>
<
/div
>
<
/Header
>
<
/Header
>
<
Content
className
=
"content"
>
<
Content
className
=
"content"
>
<
div
className
=
"contentInfo"
>
<
div
className
=
"contentInfo"
>
<
div
className
=
"infoHeader"
>
<
div
className
=
"infoHeader"
>
<
Input
className
=
"titleInput"
addonAfter
=
{
<
img
src
=
"/src/assets/detail/search.png"
style
=
{{
width
:
20
}}
/>} /
>
{
/* <Input className="titleInput" value=" 搜索" addonAfter={<img src="/src/assets/detail/search.png" onClick={this.} style={{width:20,marginTop:27,marginLeft:-33}}/>} /> */
}
<
Search
icon
=
"search"
value
=
" 搜索"
onChange
=
{
this
.
onChange
}
onIconClick
=
{
this
.
onIconClick
}
/
>
<
/div
>
<
/div
>
<
div
className
=
"infoContent"
>
<
div
className
=
"infoContent"
>
<
Table
className
=
"tableDetail"
<
Table
className
=
"tableDetail"
dataSource
=
{
this
.
getDataSource
(
type
)}
dataSource
=
{
this
.
getDataSource
(
type
)}
style
=
{{
background
:
'linear-gradient(180deg,rgba(0,0,0,0.57) 0%,rgba(12,181,213,0.1) 100%)'
}}
style
=
{{
background
:
'linear-gradient(180deg,rgba(0,0,0,0.57) 0%,rgba(12,181,213,0.1) 100%)'
}}
columns
=
{
this
.
columns
(
type
)}
columns
=
{
this
.
columns
(
type
)}
...
...
src/view/biz/duty/detail/riskDetail.js
View file @
20613542
...
@@ -8,6 +8,7 @@ import IncidenceSeverityMatrix from './echarts/IncidenceSeverityMatrix';
...
@@ -8,6 +8,7 @@ import IncidenceSeverityMatrix from './echarts/IncidenceSeverityMatrix';
/**
/**
* 风险评估
* 风险评估
*/
*/
class
RiskAssessment
extends
Component
{
class
RiskAssessment
extends
Component
{
//获取等级
//获取等级
...
@@ -38,58 +39,58 @@ class RiskAssessment extends Component {
...
@@ -38,58 +39,58 @@ class RiskAssessment extends Component {
);
);
}
}
onClick
=
()
=>
{
onClick
=
()
=>
{
this
.
props
.
updateParents
({
divVisable
:
'block'
,
riskVisable
:
'none'
});
this
.
props
.
updateParents
({
divVisable
:
'block'
,
riskVisable
:
'none'
});
}
}
render
()
{
render
()
{
return
(
return
(
<
div
className
=
"mainContent"
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
display
:
this
.
props
.
riskVisable
}}
>
<
div
className
=
"mainContent"
style
=
{{
display
:
this
.
props
.
riskVisable
}}
>
<
Layout
>
<
Layout
>
<
Layout
style
=
{{
width
:
900
}}
>
<
Header
className
=
"contentHeader"
>
<
Header
className
=
"contentHeader"
>
<
div
className
=
"headerLeft"
style
=
{{
display
:
'inline'
}}
>
{
this
.
props
.
detailTitle
}
<
/div
>
<
div
className
=
"headerLeft"
style
=
{{
display
:
'inline'
}}
>
{
this
.
props
.
detailTitle
}
<
/div
>
<
div
className
=
"headerRight"
style
=
{{
display
:
'inline'
}}
>
<
div
className
=
"headerRight"
style
=
{{
display
:
'inline'
}}
>
<
img
src
=
"/src/assets/detail/return.png"
onClick
=
{
this
.
onClick
}
width
=
"
36px"
/>
<
img
src
=
"/src/assets/detail/return.png"
onClick
=
{
this
.
onClick
}
width
=
"
42px"
style
=
{{
marginTop
:
5
}}
/
>
<
/div
>
<
/div
>
<
/Header
>
<
/Header
>
<
Content
className
=
"riskcontent"
>
<
Layout
>
<
Header
className
=
"blockOneHeader"
>
<
Content
className
=
"riskcontent"
>
<
Header
className
=
"blockOneHeader"
>
<
Header
className
=
"oneChildHeader"
>
<
Header
className
=
"oneChildHeader"
>
<
img
src
=
"/src/assets/detail/secondTitle1.png"
style
=
{{
width
:
192
,
height
:
29
,
margin
:
0
}}
/
>
<
img
src
=
"/src/assets/detail/secondTitle1.png"
style
=
{{
width
:
256
,
height
:
38
,
margin
:
0
}}
/
>
<
/Header
>
<
/Header
>
<
Content
className
=
"oneHeaderContent"
>
<
Content
className
=
"oneHeaderContent"
>
<
img
src
=
"/src/assets/detail/RPNr.png"
style
=
{{
width
:
922
,
height
:
503
,
marginTop
:
35
,
marginLeft
:
248
}}
/>
<
img
src
=
"/src/assets/detail/RPNr.png"
style
=
{{
width
:
692
,
height
:
378
,
marginTop
:
20
,
marginLeft
:
100
}}
/>
{
this
.
getLegend
()}
{
this
.
getLegend
()}
<
/Content
>
<
/Content
>
<
/Header
>
<
/Header
>
<
Content
className
=
"blockOneContent"
>
<
Content
className
=
"blockOneContent"
>
<
Layout
className
=
"oneChildLayout"
>
<
Layout
className
=
"oneChildLayout"
>
<
Sider
className
=
"oneChildSider"
>
<
Sider
className
=
"oneChildSider"
>
<
Header
className
=
"twoChildHeader"
>
<
Header
className
=
"twoChildHeader"
>
<
img
src
=
"/src/assets/detail/secondTitle2.png"
style
=
{{
width
:
192
,
height
:
29
,
margin
:
0
}}
/
>
<
img
src
=
"/src/assets/detail/secondTitle2.png"
style
=
{{
width
:
277
,
height
:
38
,
margin
:
0
}}
/
>
<
/Header
>
<
/Header
>
<
Content
className
=
"twoHeaderContent"
>
<
Content
className
=
"twoHeaderContent"
>
<
div
className
=
"risk-degree-pie"
>
<
div
className
=
"risk-degree-pie"
>
<
div
className
=
"risk-degree-pie1"
>
<
div
className
=
"risk-degree-pie1"
>
{
/* <RiskDegreePie /> */
}
{
/* <RiskDegreePie /> */
}
{
/*
<div>5</div>
<
div
>
5
<
/div
>
<
div
>
2
%
↑
<
/div
>
<
div
>
2
%
↑
<
/div
>
<div>本年风险</div>
*/
}
<
div
>
本年风险
<
/div>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/Content
>
<
/Content
>
<
/Sider
>
<
/Sider
>
<
/Layout>
<
/Layout>
<
/Content
>
<
/Content
>
<
Content
className
=
"blockTwoContent"
>
<
Content
className
=
"blockTwoContent"
>
<
Layout
className
=
"oneChildLayout"
>
<
Layout
className
=
"oneChildLayout"
>
<
Sider
className
=
"oneChildSider"
>
<
Sider
className
=
"oneChildSider"
>
<
Header
className
=
"twoChildHeader"
>
<
Header
className
=
"twoChildHeader"
>
<
img
src
=
"/src/assets/detail/secondTitle3.png"
style
=
{{
width
:
2
08
,
height
:
29
,
margin
:
0
}}
/
>
<
img
src
=
"/src/assets/detail/secondTitle3.png"
style
=
{{
width
:
2
77
,
height
:
38
,
margin
:
0
}}
/
>
<
/Header
>
<
/Header
>
<
Content
className
=
"twoHeaderContent"
>
<
Content
className
=
"twoHeaderContent"
>
{
/* <IncidenceSeverityMatrix /> */
}
{
/* <IncidenceSeverityMatrix /> */
}
...
@@ -97,17 +98,18 @@ class RiskAssessment extends Component {
...
@@ -97,17 +98,18 @@ class RiskAssessment extends Component {
<
/Sider
>
<
/Sider
>
<
/Layout
>
<
/Layout
>
<
/Content
>
<
/Content
>
<
/Content>
<
/Content>
<
/Layout
>
<
Sider
className
=
"risksider"
>
<
Sider
className
=
"risksider"
>
<
Header
className
=
"risksiderHeader"
>
<
Header
className
=
"risksiderHeader"
>
<
img
src
=
"/src/assets/detail/secondTitle4.png"
style
=
{{
width
:
192
,
height
:
29
,
margin
:
0
}}
/
>
<
img
src
=
"/src/assets/detail/secondTitle4.png"
style
=
{{
width
:
256
,
height
:
38
,
margin
:
0
}}
/
>
<
/Header
>
<
/Header
>
<
Content
className
=
"risksiderContent"
>
<
Content
className
=
"risksiderContent"
>
{
/* <RiskDegreeHistogram /> */
}
{
/* <RiskDegreeHistogram /> */
}
<
/Content>
<
/Content>
<
/Sider>
<
/Sider>
<
/Layout>
<
/Layout
>
<
/Layout
>
<
/div
>
<
/div
>
);
);
...
...
src/view/biz/duty/situation/GrowthStatistics.js
View file @
20613542
...
@@ -7,6 +7,8 @@ class GrowthStatistics extends Component {
...
@@ -7,6 +7,8 @@ class GrowthStatistics extends Component {
<
div
className
=
'growth-statistics-view common-margin'
>
<
div
className
=
'growth-statistics-view common-margin'
>
<
div
className
=
'daily-title daily-title-content'
>
告警隐患周增幅统计
<
/div
>
<
div
className
=
'daily-title daily-title-content'
>
告警隐患周增幅统计
<
/div
>
<
div
className
=
'growth-content'
>
<
div
className
=
'growth-content'
>
<
div
style
=
{{
position
:
"initial"
,
width
:
28
,
height
:
28
,
marginTop
:
-
23
,
marginLeft
:
358
}}
onClick
=
{
this
.
props
.
onWarnClick
}
><
/div
>
<
div
className
=
'growth-item growth-item-header'
>
<
div
className
=
'growth-item growth-item-header'
>
<
div
>
日期
<
/div
>
<
div
>
日期
<
/div
>
<
div
>
告警隐患
<
/div
>
<
div
>
告警隐患
<
/div
>
...
...
src/view/biz/duty/situation/RecentStatistics.js
View file @
20613542
...
@@ -34,6 +34,8 @@ class RecentStatistics extends Component {
...
@@ -34,6 +34,8 @@ class RecentStatistics extends Component {
<
Button
size
=
'sm'
children
=
{
<
span
>
隐患
<
/span>} className='button-style' value="2" style={
(
value == '2'
)?
select:noselect}/
>
<
Button
size
=
'sm'
children
=
{
<
span
>
隐患
<
/span>} className='button-style' value="2" style={
(
value == '2'
)?
select:noselect}/
>
<
/ButtonGroup
>
<
/ButtonGroup
>
<
div
className
=
'recent-statistics-content'
>
<
div
className
=
'recent-statistics-content'
>
<
div
style
=
{{
position
:
"initial"
,
width
:
28
,
height
:
28
,
marginTop
:
-
14
,
marginLeft
:
362
}}
onClick
=
{
this
.
props
.
onStatisticClick
}
><
/div
>
<
ReactEcharts
option
=
{
recentData
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
}}
/
>
<
ReactEcharts
option
=
{
recentData
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
}}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/view/biz/duty/situation/RiskFailure.js
View file @
20613542
...
@@ -8,6 +8,8 @@ class RiskFailure extends Component {
...
@@ -8,6 +8,8 @@ class RiskFailure extends Component {
<
div
className
=
'risk-failure-view common-margin daily-title'
>
<
div
className
=
'risk-failure-view common-margin daily-title'
>
<
div
className
=
'daily-title daily-title-content'
>
安全风险失效
TOP10
<
/div
>
<
div
className
=
'daily-title daily-title-content'
>
安全风险失效
TOP10
<
/div
>
<
div
className
=
'top-ten-content'
>
<
div
className
=
'top-ten-content'
>
<
div
style
=
{{
position
:
"initial"
,
width
:
28
,
height
:
28
,
marginTop
:
-
32
,
marginLeft
:
352
}}
onClick
=
{
this
.
props
.
onRiskClick
}
><
/div
>
{
{
riskFailureData
.
map
((
item
,
index
)
=>
riskFailureData
.
map
((
item
,
index
)
=>
<
div
className
=
'top-ten-item'
key
=
{
index
}
>
<
div
className
=
'top-ten-item'
key
=
{
index
}
>
...
...
src/view/biz/duty/situation/SafetyRate.js
View file @
20613542
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
{
SafetyRateData
}
from
'./data'
;
import
{
SafetyRateData
}
from
'./data'
;
import
{
OverFlowText
}
from
'amos-framework'
;
import
{
OverFlowText
,
Button
}
from
'amos-framework'
;
class
SafetyRate
extends
Component
{
class
SafetyRate
extends
Component
{
render
()
{
render
()
{
return
(
return
(
<
div
className
=
'safety-rate-view common-margin daily-title'
>
<
div
className
=
'safety-rate-view common-margin daily-title'
>
<
div
className
=
'daily-title-content'
>
安全指数
TOP10
<
/div
>
<
div
className
=
'daily-title-content'
>
<
div
className
=
'top-ten-content'
>
安全指数
TOP10
<
/div
>
<
div
className
=
'top-ten-content'
style
=
{{
position
:
"initial"
}}
>
<
div
style
=
{{
position
:
"initial"
,
width
:
28
,
height
:
28
,
marginTop
:
-
32
,
marginLeft
:
352
}}
onClick
=
{
this
.
props
.
onClick
}
><
/div
>
{
{
SafetyRateData
.
map
((
item
,
index
)
=>
SafetyRateData
.
map
((
item
,
index
)
=>
<
div
className
=
'top-ten-item'
key
=
{
index
}
>
<
div
className
=
'top-ten-item'
key
=
{
index
}
>
...
...
src/view/biz/duty/situation/index.js
View file @
20613542
...
@@ -6,10 +6,11 @@ import RiskFailure from './RiskFailure';
...
@@ -6,10 +6,11 @@ import RiskFailure from './RiskFailure';
import
RiskTrend
from
'./RiskTrend'
;
import
RiskTrend
from
'./RiskTrend'
;
import
Statistics
from
'./Statistics'
;
import
Statistics
from
'./Statistics'
;
import
SafetyRate
from
'./SafetyRate'
;
import
SafetyRate
from
'./SafetyRate'
;
import
CentralInfoView
from
'./../detail/index'
;
/**
/**
* situation
* situation
*安全态势
*
安全态势
* @class situation
* @class situation
* @extends {Component}
* @extends {Component}
*/
*/
...
@@ -17,7 +18,9 @@ class Situation extends Component {
...
@@ -17,7 +18,9 @@ class Situation extends Component {
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
divVisable
:
'none'
,
//控制弹窗显示
title
:
''
,
//modal标题
type
:
''
//弹窗类型(根据类型切换不同弹窗)
};
};
}
}
...
@@ -33,16 +36,33 @@ class Situation extends Component {
...
@@ -33,16 +36,33 @@ class Situation extends Component {
}
}
onRef
=
(
ref
)
=>
{
this
.
child1
=
ref
;
}
//安全指数弹窗
kpsi
(
values
){
console
.
log
(
values
);
this
.
setState
({
divVisable
:
values
.
divVisable
,
title
:
values
.
title
,
type
:
values
.
type
})
}
render
()
{
render
()
{
return
(
return
(
<
div
className
=
'class-Situation'
>
<
div
className
=
'class-Situation'
>
<
div
className
=
'daily-duties-content'
>
<
div
className
=
'daily-duties-content'
>
<
div
className
=
'daily-duties-left'
>
<
div
className
=
'daily-duties-left'
>
<
div
>
<
div
>
<
SafetyRate
/>
<
SafetyRate
onClick
=
{()
=>
{
this
.
child1
.
kpsi
()}}
/
>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
GrowthStatistics
/>
<
GrowthStatistics
onWarnClick
=
{()
=>
{
this
.
child1
.
dangerWeekCensus
()}}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
'daily-duties-middle'
>
<
div
className
=
'daily-duties-middle'
>
...
@@ -55,13 +75,18 @@ class Situation extends Component {
...
@@ -55,13 +75,18 @@ class Situation extends Component {
<
/div
>
<
/div
>
<
div
className
=
'daily-duties-right'
>
<
div
className
=
'daily-duties-right'
>
<
div
>
<
div
>
<
RiskFailure
/>
<
RiskFailure
onRiskClick
=
{()
=>
{
this
.
child1
.
safetyRiskFailure
()}}
/
>
<
/div
>
<
/div
>
<
div
>
<
div
>
<
RecentStatistics
/>
<
RecentStatistics
onStatisticClick
=
{()
=>
{
this
.
child1
.
sevenDaysRiskCensus
()}}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div>
<
/div
>
<
div
>
<
/div
>
<
/div
>
<
CentralInfoView
onRef
=
{
this
.
onRef
}
/>
<
/div
>
<
/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