Commit e94546a5 authored by suhuiguang's avatar suhuiguang

1.修改今日安全指数详情样式

parent e7f40486
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
padding-left: 97px; padding-left: 97px;
padding-top: 10px; padding-top: 10px;
flex-grow: 1; flex-grow: 1;
overflow-y: auto;
.title-child{ .title-child{
width: 100%; width: 100%;
...@@ -156,9 +157,7 @@ ...@@ -156,9 +157,7 @@
height: 100%; height: 100%;
margin-left: 30px; margin-left: 30px;
margin-right: 20px; margin-right: 20px;
&:hover{ cursor: pointer;
background-color: rgba(199,223,245,0.3);
}
.content-item { .content-item {
margin: 5px; margin: 5px;
...@@ -473,13 +472,15 @@ ...@@ -473,13 +472,15 @@
text-align: right; text-align: right;
margin-top: 5px; margin-top: 5px;
margin-right: 3px; margin-right: 3px;
float: right;
// margin-top: 5px;
// margin-right: 3px;
img{ img{
cursor: pointer; cursor: pointer;
} }
} }
&-body {
display: flex;
height: calc(100% - 50px);
.model-line{ .model-line{
float: left; float: left;
display: inline; display: inline;
...@@ -528,4 +529,5 @@ ...@@ -528,4 +529,5 @@
} }
} }
} }
}
} }
...@@ -35,14 +35,14 @@ export default class SafetyIndex extends Component { ...@@ -35,14 +35,14 @@ export default class SafetyIndex extends Component {
const { safetyIndexData } = this.state; const { safetyIndexData } = this.state;
return { return {
tooltip: { tooltip: {
show:false show: false
}, },
toolbox: { toolbox: {
show:false, show: false,
feature: { feature: {
mark: {show: false}, mark: { show: false },
restore: {show: false}, restore: { show: false },
saveAsImage: {show: false} saveAsImage: { show: false }
} }
}, },
series: [ series: [
...@@ -54,10 +54,10 @@ export default class SafetyIndex extends Component { ...@@ -54,10 +54,10 @@ export default class SafetyIndex extends Component {
min: 0, min: 0,
max: 100, max: 100,
endAngle: 90, endAngle: 90,
startAngle:-90, startAngle: -90,
splitNumber: 3, splitNumber: 3,
axisLine: { // 坐标轴线 axisLine: { // 坐标轴线
show:false, show: false,
lineStyle: { // 属性lineStyle控制线条样式 lineStyle: { // 属性lineStyle控制线条样式
color: [ color: [
[0.5, 'red'], [0.5, 'red'],
...@@ -66,28 +66,28 @@ export default class SafetyIndex extends Component { ...@@ -66,28 +66,28 @@ export default class SafetyIndex extends Component {
[1, '#00C3FF'] [1, '#00C3FF']
], ],
width: 0, width: 0,
opacity : 0 opacity: 0
} }
}, },
axisLabel: { // 坐标轴小标记 axisLabel: { // 坐标轴小标记
show:false show: false
}, },
axisTick: { // 坐标轴小标记 axisTick: { // 坐标轴小标记
show:false show: false
}, },
splitLine: { // 分隔线 splitLine: { // 分隔线
show:false show: false
}, },
pointer: { pointer: {
width: 5 width: 5
}, },
title: { title: {
show:false show: false
}, },
detail: { detail: {
show:false show: false
}, },
data: [{value: safetyIndexData.safetyIndex, name: '今日安全指数'}] data: [{ value: safetyIndexData.safetyIndex, name: '今日安全指数' }]
} }
] ]
} }
...@@ -103,13 +103,14 @@ export default class SafetyIndex extends Component { ...@@ -103,13 +103,14 @@ export default class SafetyIndex extends Component {
return ( return (
<div className='warnModal'> <div className='warnModal'>
<div className='close'> <div className='close'>
<img src={panoramicIcon.model_close} onClick={() => this.modelOpen(false)}></img> <img src={panoramicIcon.model_close} alt='' onClick={() => this.modelOpen(false)} />
</div> </div>
<div className='warnModal-body'>
{warnController.map(item => { {warnController.map(item => {
return ( return (
<div className='model-line'> <div key={item.key} className='model-line'>
<div> <div>
<img src={getIcon(item.icon)}></img> <img src={getIcon(item.icon)} alt='' />
</div> </div>
<div className='model-title'>{item.label}</div> <div className='model-title'>{item.label}</div>
<ModelContent type={item.type} /> <ModelContent type={item.type} />
...@@ -117,6 +118,7 @@ export default class SafetyIndex extends Component { ...@@ -117,6 +118,7 @@ export default class SafetyIndex extends Component {
); );
})} })}
</div> </div>
</div>
); );
} }
...@@ -136,14 +138,14 @@ export default class SafetyIndex extends Component { ...@@ -136,14 +138,14 @@ export default class SafetyIndex extends Component {
</span> </span>
</div> </div>
{ {
[{name:'风险值上升',num:safetyIndexData.riskExceptionNum}, [{ name: '风险值上升',num: safetyIndexData.riskExceptionNum },
{name:'巡检不合格',num:safetyIndexData.checkExceptionNum}, { name: '巡检不合格',num: safetyIndexData.checkExceptionNum },
{name:'火灾报警',num:safetyIndexData.fireExceptionNum}].map((item,index)=> { name: '火灾报警',num: safetyIndexData.fireExceptionNum }].map((item,index)=>
<div className="content-item">{item.name} {item.num}</div> <div key={item.name} className="content-item">{item.name} {item.num}</div>
) )
} }
</div> </div>
<ReactEcharts className='safetyIndex-content-chart' option={this.getOption()}/> <ReactEcharts className='safetyIndex-content-chart' option={this.getOption()} />
{ modelVisable && this.renderWarnContent()} { modelVisable && this.renderWarnContent()}
</div> </div>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment