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 1e30b95c..42f71567 100644 --- a/web/client/src/sections/quanju/containers/footer/build/index.js +++ b/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) => { -
+ { totalcount && totalcount!==0?
@@ -162,7 +165,7 @@ const Build = (props) => {
-
+
:
暂无数据
} { - + {sunonlineproject!==0?:
暂无数据
}