diff --git a/web/client/src/sections/quanju/containers/footer/build/index.js b/web/client/src/sections/quanju/containers/footer/build/index.js index 96196392..1e30b95c 100644 --- a/web/client/src/sections/quanju/containers/footer/build/index.js +++ b/web/client/src/sections/quanju/containers/footer/build/index.js @@ -36,7 +36,8 @@ 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]))})) - setdata(alltype.filter(item=>item.name!=='null')) + console.log(alltype,'打他啊') + setdata(alltype.filter(item=>item.name==='县'||item.name==="乡"||item.name==='村')) setbuildingnumber(res.payload.data) console.log(res.payload.data,'哈哈哈') @@ -82,7 +83,7 @@ const Build = (props) => { let onlineproject = Object.keys(buildingnumber?.townProject||{}).map((item)=>({name:item,total:buildingnumber.townProject[item]})) let sunonlineproject = onlineproject?.reduce((x,y)=>x+y.total,0) - let safetyData = alldengji?.filter(item=>item.name!=='null') + 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) let sunsafetyData = safetyData?.reduce((x,y)=>x+y.value,0) // console.log(safetyData,'好凶猛') @@ -166,7 +167,7 @@ const Build = (props) => { - { data? { - {safetyData?