Browse Source

(*) 消防-消防救援队伍

master
liujiangyong 1 year ago
parent
commit
c90531aedf
  1. 48
      super-screen/client/src/sections/fire-control/components/left-top.js
  2. 105
      super-screen/client/src/sections/fire-control/components/style.less
  3. 2
      super-screen/client/src/sections/fire-control/containers/homePage.js

48
super-screen/client/src/sections/fire-control/components/left-top.js

@ -1,38 +1,30 @@
import React from 'react' import React from 'react'
import { Box } from '$components'; import { Box, AutoRollComponent, NoData } from '$components';
function BasicInfo() { function BasicInfo(props) {
const { emergencyList } = props;
return <Box title={"警情数据分析"} subtitle={true} > const getContent = () => {
<div className='alarm_data_analysis'> return <div className='xfjy_data'>
<div className='_item_left'> {emergencyList.xfjy?.map(item => <div className='xfjy_item'>
<div className='_img' >65<span style={{ fontSize: 12 }}>%</span></div> <div className='_text'>
<div className='_text'>真警占比率</div> <div className='_row1'>
</div> <span>救援队伍</span>
<div className='_item_right'> <span>负责人及电话</span>
<div className='flex-row flex-item-center'>
<div className='_iconphone' />
<div className='right_item_right'>
<div className='alarm_title'>电话联系数量</div>
<div><span className='alarm_number'>479</span><span className='alarm_unit'></span></div>
</div>
</div>
<div className='flex-row flex-item-center'>
<div className='_iconreal' />
<div className='right_item_right'>
<div className='alarm_title'>真警数量</div>
<div><span className='alarm_number'>273</span><span className='alarm_unit'></span></div>
</div>
</div>
<div className='flex-row flex-item-center'>
<div className='_iconmistake' />
<div className='right_item_right'>
<div className='alarm_title'>误报数量</div>
<div><span className='alarm_number'>276</span><span className='alarm_unit'></span></div>
</div> </div>
<div className='_row2'>
<span>{item.teamName}</span>
<span>{item.leaderContactPhone}</span>
</div> </div>
</div> </div>
</div>)}
</div> </div>
}
return <Box title={"消防救援队伍"}>
{emergencyList?.xfjy?.length
? <AutoRollComponent canScroll={true} content={getContent()} divHeight={250} divId={`fire-left-top`} />
: <NoData height={250} />
}
</Box> </Box>
} }

105
super-screen/client/src/sections/fire-control/components/style.less

@ -246,94 +246,47 @@
} }
//警情数据分析 //消防救援队伍
.alarm_data_analysis { .xfjy_data {
width: 100%; padding-left: 28px;
height: 100%; padding-right: 28px;
display: flex;
justify-content: space-around;
align-items: center;
._item_left {
width: 209px;
height: 100%;
._img { .xfjy_item {
width: 209px;
height: 209px;
background: url('/assets/images/homepage/fire/realalarmbg.png') no-repeat;
background-size: 100% 100%;
display: flex; display: flex;
background: url('/assets/images/homepage/fire/realtimebg.png') no-repeat;
background-size: 100% 100%;
height: 110px;
width: 100%;
margin-bottom: 5%;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-family: D-DINExp-Italic;
font-weight: Italic;
font-size: 48px;
color: #FFFFFF;
letter-spacing: 0;
}
._text { ._text {
font-family: YouSheBiaoTiHei; width: calc(100% - 40px);
font-size: 20px; display: flex;
color: #FFFFFF; flex-direction: column;
letter-spacing: 0;
margin-top: -30px;
text-align: center;
}
}
._item_right {
width: 200px;
._iconphone {
width: 50.96px;
height: 45px;
background: url('/assets/images/homepage/fire/iconphone.png') no-repeat;
background-size: 100% 100%;
}
._iconreal {
width: 50.96px;
height: 45px;
background: url('/assets/images/homepage/fire/iconreal.png') no-repeat;
background-size: 100% 100%;
}
._iconmistake { ._row1 {
width: 50.96px; color: #C3E6FF;
height: 45px; width: 100%;
background: url('/assets/images/homepage/fire/iconmistake.png') no-repeat; height: 22px;
background-size: 100% 100%; background: rgba(0, 88, 204, 0.5);
justify-content: space-around;
display: flex;
} }
.right_item_right { ._row2 {
width: 155px; justify-content: space-around;
margin-left: 16px; display: flex;
height: 42px;
.alarm_title { font-family: SourceHanSansSC-Regular;
font-size: 14px; font-weight: 400;
font-size: 16px;
color: #ECF7FF; color: #ECF7FF;
letter-spacing: 0; letter-spacing: 0.67px;
padding-top: 4px;
} }
.alarm_number {
font-family: D-DINExp-Italic;
font-weight: Italic;
font-size: 28px;
color: #24DCF7;
letter-spacing: 0;
margin-right: 50px;
} }
.alarm_unit {
font-size: 14px;
color: #5999C8;
letter-spacing: 0;
}
}
} }
} }

2
super-screen/client/src/sections/fire-control/containers/homePage.js

@ -50,7 +50,7 @@ function homePage(props) {
{tab == 'overview' ? {tab == 'overview' ?
<> <>
<div className='child' style={childStyle}> <div className='child' style={childStyle}>
<LeftTop /> <LeftTop emergencyList={emergencyList} />
</div> </div>
<div className='child' style={childStyle}> <div className='child' style={childStyle}>
<LeftMiddle /> <LeftMiddle />

Loading…
Cancel
Save