|
|
@ -46,7 +46,7 @@ const Build = (props) => { |
|
|
|
// 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, '哈哈哈') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -95,7 +95,11 @@ const Build = (props) => { |
|
|
|
onlineproject = onlineproject.sort((a, b) => { |
|
|
|
return b.total - a.total |
|
|
|
}) |
|
|
|
//console.log('onlineproject', onlineproject)
|
|
|
|
let sunonlineproject = onlineproject?.reduce((x, y) => x + y.total, 0) |
|
|
|
let projectAll = buildingnumber?.projectAll |
|
|
|
//console.log('projectAll', projectAll)
|
|
|
|
//let projectAll=
|
|
|
|
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) |
|
|
@ -160,7 +164,7 @@ const Build = (props) => { |
|
|
|
</div> */} |
|
|
|
<img src='/assets/images/quanju/yuanhuan.webp' className='build-left-top-center' /> |
|
|
|
<div className='build-left-top-item'> |
|
|
|
<div>{sunonlineproject || 0}</div> |
|
|
|
<div>{projectAll || 0}</div> |
|
|
|
<div> |
|
|
|
{/* <i>►</i> */} |
|
|
|
{/* <span /> */} |
|
|
|