Browse Source

优化

master
liujiangyong 1 year ago
parent
commit
2ae43ceb63
  1. 8
      super-screen/client/src/sections/fire-control/components/left-middle.js
  2. 2
      super-screen/client/src/sections/fire-control/components/left-top.js
  3. 10
      super-screen/client/src/sections/fire-control/components/style.less

8
super-screen/client/src/sections/fire-control/components/left-middle.js

@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import { Box, AutoRollComponent, NoData } from '$components'; import { Box, AutoRollComponent, NoData } from '$components';
// import ReactEcharts from 'echarts-for-react'; // import ReactEcharts from 'echarts-for-react';
import { Progress } from 'antd'; import { Progress, Tooltip } from 'antd';
function PopulationDynamics(props) { function PopulationDynamics(props) {
const { fireDevice } = props; const { fireDevice } = props;
@ -129,12 +129,14 @@ function PopulationDynamics(props) {
const getContent = () => { const getContent = () => {
return <div className='fire-device'>{ return <div className='fire-device'>{
fireDevice.map(d => <div className='fire-device-item'> fireDevice.map(d => <div className='fire-device-item'>
<div className='_name'>{d.type_name}</div> <Tooltip title={d.type_name}>
<div className='_name'>{d.type_name}</div>
</Tooltip>
<div className='_progress'> <div className='_progress'>
<Progress <Progress
percent={(d.device_count / total) * 100} percent={(d.device_count / total) * 100}
showInfo={false} showInfo={false}
strokeWidth={12} strokeWidth={14}
strokeColor='#005AC6' strokeColor='#005AC6'
trailColor='#2B375C' trailColor='#2B375C'
strokeLinecap="butt" strokeLinecap="butt"

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

@ -14,7 +14,7 @@ function BasicInfo(props) {
</div> </div>
<div className='_row2'> <div className='_row2'>
<span>{item.teamName}</span> <span>{item.teamName}</span>
<span>{item.leaderContactPhone}</span> <span>{item.leaderContactPhone.replace(/(\d{3})\d*(\d{4})/, "$1****$2")}</span>
</div> </div>
</div> </div>
</div>)} </div>)}

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

@ -293,7 +293,7 @@
// 接入消防设备 // 接入消防设备
.fire-device-item { .fire-device-item {
display: flex; display: flex;
height: 30px; height: 50px;
align-items: center; align-items: center;
justify-content: space-around; justify-content: space-around;
@ -316,11 +316,11 @@
._round { ._round {
position: absolute; position: absolute;
width: 12px; width: 14px;
height: 12px; height: 14px;
background: #fff; background: #fff;
border-radius: 6px; border-radius: 7px;
top: 7px; top: 6px;
} }
} }

Loading…
Cancel
Save