Browse Source

完善建设大屏

release_0.0.1
dengyinhuan 3 years ago
parent
commit
264cd7e5db
  1. 9
      web/client/src/sections/quanju/containers/footer/build/index.js

9
web/client/src/sections/quanju/containers/footer/build/index.js

@ -82,6 +82,9 @@ const Build = (props) => {
let alldengji = Object.keys(buildingnumber?.roadLevel || {}).map((item)=>({name:item,value:Number(keepThreeNum(buildingnumber.roadLevel[item]))}))
let onlineproject = Object.keys(buildingnumber?.townProject||{}).map((item)=>({name:item,total:buildingnumber.townProject[item]}))
onlineproject = onlineproject.sort((a,b)=>{
return b.total - a.total
})
let sunonlineproject = onlineproject?.reduce((x,y)=>x+y.total,0)
let safetyData = alldengji?.filter(item=>item.name==='一级公路'||item.name==='二级公路'||item.name==='三级公路'||item.name==='四级公路'||item.name==='等外公路')
let sundata = data?.reduce((x,y)=>x+y.value,0)
@ -138,7 +141,7 @@ const Build = (props) => {
<Module title={"各乡镇道路分布统计"} style={{ width: "100%",
height:" 33%",marginTop:'3%'
}} customize = {true}>
<div className='build-left-center'>
{ totalcount && totalcount!==0?<div className='build-left-center'>
<div className='build-left-center-top'>
<div>
<img src='/assets/images/quanju/gonglugongli.png'></img>
@ -162,7 +165,7 @@ const Build = (props) => {
</div>
<AutoRollComponent content = {rendercontent()} containerStyle={{ position: "relative", height: "50%", }}
divHeight={"100%"} divId={"chart"} />
</div>
</div>:<div style={{color:"#fff",textAlign:'center',height:"100%",display:'flex',alignItems: "center",justifyContent: "space-around"}}></div>}
</Module>
<Module title={"道路统计"} style={{ width: "100%",
height:" 30%",marginTop:'3%'
@ -191,7 +194,7 @@ const Build = (props) => {
<Module title={"各乡镇在建公路工程"} style={{ width: "100%",
height:" 33%",marginTop:'3%'
}} customize = {true}>
<Rightcenter data={onlineproject} sundata={sunonlineproject}/>
{sunonlineproject!==0?<Rightcenter data={onlineproject} sundata={sunonlineproject}/>:<div style={{color:"#fff",textAlign:'center',height:"100%",display:'flex',alignItems: "center",justifyContent: "space-around"}}>暂无数据</div>}
</Module>
<Module title={"公路等级统计"} style={{ width: "100%",
height:" 30%",marginTop:'3%'

Loading…
Cancel
Save