From 264cd7e5dbba6633f3fd8493642450c1f539af49 Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Tue, 26 Jul 2022 13:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BB=BA=E8=AE=BE=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/quanju/containers/footer/build/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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?:
暂无数据
}