|
|
@ -48,10 +48,11 @@ const RightTop = (props) => { |
|
|
|
useEffect(() => { |
|
|
|
dispatch(getRoadmaintain()).then((res) => { |
|
|
|
setRoadmaintainList(res.payload.data.reportList.filter((item, index) => { |
|
|
|
return item.projectType == "road" |
|
|
|
|| item.projectType == "countyRoad" |
|
|
|
|| item.projectType == "villageRoad" |
|
|
|
|| item.projectType == "rusticRoad" |
|
|
|
return item.projectType == "road" |
|
|
|
|| item.projectType == "countyRoad" |
|
|
|
|| item.projectType == "villageRoad" |
|
|
|
|| item.projectType == "rusticRoad" |
|
|
|
|| !item.projectType |
|
|
|
})) |
|
|
|
}) |
|
|
|
}, []) |
|
|
|