|
|
@ -17,7 +17,11 @@ const Right = (props) => { |
|
|
|
useEffect(() => { |
|
|
|
const daolus = dispatch(getRoadmaintain()).then((res) => { |
|
|
|
setList(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 |
|
|
|
})) |
|
|
|
setNums(res.payload.data.reportCount.reduce((count, item) => { |
|
|
|
if (item.projectType == "road" || item.projectType == "countyRoad" || item.projectType == "villageRoad" || item.projectType == "rusticRoad") { |
|
|
@ -66,7 +70,16 @@ const Right = (props) => { |
|
|
|
<div style={{ position: "fixed", width: "400px", height: "200px", zIndex: 100, left: "50%", marginTop: "0", top: "35%" }}> |
|
|
|
<img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} /> |
|
|
|
<div style={{ width: "50%", height: "100%", position: "absolute", top: "0", }}> |
|
|
|
<Hua shuzu={[{ "imgs": item.conserveAfterPic ? item.conserveAfterPic[0] : "" }, { "imgs": item.conserveBeforePic ? item.conserveBeforePic[0] : "" }, { "imgs": item.conserveUnderwayPic ? item.conserveUnderwayPic[0] : "" }]} /> |
|
|
|
{ |
|
|
|
item.conserveAfterPic && item.conserveAfterPic.length ? |
|
|
|
<Hua |
|
|
|
shuzu={[ |
|
|
|
{ "imgs": item.conserveAfterPic ? item.conserveAfterPic[0] : "" }, |
|
|
|
{ "imgs": item.conserveBeforePic ? item.conserveBeforePic[0] : "" }, |
|
|
|
{ "imgs": item.conserveUnderwayPic ? item.conserveUnderwayPic[0] : "" } |
|
|
|
]} |
|
|
|
/> : '' |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div style={{ position: "absolute", top: "0", width: "50%", left: "50%", paddingRight: "10px" }}> |
|
|
|
<p style={{ marginTop: "20px", color: "#FFFFFF", fontSize: "16px", fontFamily: "YouSheBiaoTiHei" }}>{item.roadSectionStart ? item.roadSectionStart : ""}{item.roadSectionStart && item.roadSectionEnd ? "——" : ""}{item.roadSectionEnd ? item.roadSectionEnd : ""}{item.roadSectionStart || item.roadSectionEnd ? "" : "--"}</p> |
|
|
|