|
@ -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" |
|
|