|
|
@ -36,10 +36,10 @@ const Build = (props) => { |
|
|
|
const requestbuildingnumber = async ()=>{ |
|
|
|
const res = await dispatch(getdaolutongji()); |
|
|
|
let alltype = Object.keys(res.payload.data?.roadType || {}).map((item)=>({name:item,value:Number(keepThreeNum(res.payload.data.roadType[item]))})) |
|
|
|
console.log(alltype,'打他啊') |
|
|
|
// console.log(alltype,'打他啊')
|
|
|
|
setdata(alltype.filter(item=>item.name==='县'||item.name==="乡"||item.name==='村')) |
|
|
|
setbuildingnumber(res.payload.data) |
|
|
|
console.log(res.payload.data,'哈哈哈') |
|
|
|
// console.log(res.payload.data,'哈哈哈')
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -118,7 +118,9 @@ const Build = (props) => { |
|
|
|
<Module title={"各种状态公路数量统计"} style={{ width: "100%", |
|
|
|
height:" 33%" |
|
|
|
}} customize = {true}> |
|
|
|
{buildingnumber&&buildingnumber.buildedRoad!==0&&totalgongli!==0?<div className='build-left-top'> |
|
|
|
<div style={{height:"100%",position:"relative"}} > |
|
|
|
<span style={{position:"absolute",width:"10%",color:"#FFF",backgroundColor:'rgba(216, 240, 255, 0.1)',right:"5%",textAlign:"center"}}>条</span> |
|
|
|
{buildingnumber&&buildingnumber.buildedRoad!==0&&totalgongli!==0?<div className='build-left-top'> |
|
|
|
<div className='build-left-top-item'> |
|
|
|
<div> |
|
|
|
{/* <i>►</i> */} |
|
|
@ -137,6 +139,7 @@ const Build = (props) => { |
|
|
|
<div>{buildingnumber?.buildedRoad || 0}</div> |
|
|
|
</div> |
|
|
|
</div>:<NoData/>} |
|
|
|
</div> |
|
|
|
</Module> |
|
|
|
<Module title={"各乡镇道路分布统计"} style={{ width: "100%", |
|
|
|
height:" 33%",marginTop:'3%' |
|
|
@ -203,7 +206,7 @@ const Build = (props) => { |
|
|
|
{safetyData&&sunsafetyData!==0?<RightBottom width='100%' |
|
|
|
height='100%' |
|
|
|
text='道路总公里' |
|
|
|
total={sunsafetyData} |
|
|
|
total={keepThreeNum(sundata)} |
|
|
|
data={keepThreeNum(safetyData)}/>:<NoData/>} |
|
|
|
</Module> |
|
|
|
</div> |
|
|
|