|
@ -136,46 +136,45 @@ const Guanli = (props) => { |
|
|
// }
|
|
|
// }
|
|
|
const renderContent = rightitemlist.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { |
|
|
const renderContent = rightitemlist.map(({ enforcementdate, enforcementreslt, roadname, picfile }, index) => { |
|
|
return ( |
|
|
return ( |
|
|
<div key={index} style={{ width: '100%', }} className='carCard'> |
|
|
<div key={index} style={{}} className='carCardRight'> |
|
|
<div style={{ width: '90%', height: '96%', margin: '2% 5%', overflow: 'hidden', display: "flex" }}> |
|
|
{picfile?.length > 0 ? <Carousel autoplay style={{ width: 200, height: 200, margin: "20px 10px" }}> |
|
|
{picfile?.length > 0 ? <Carousel autoplay style={{ width: 200, height: 200, margin: "20px 0px 0px 20px" }}> |
|
|
{picfile?.map(v => <div style={{ width: 200, height: 200 }}> |
|
|
{picfile?.map(v => <div style={{ width: 200, height: 200 }}> |
|
|
<img className='picfileimg' |
|
|
<img className='picfileimg' |
|
|
style={{ width: 200, height: 150, display: 'inline-block', }} |
|
|
style={{ width: 200, height: 150, display: 'inline-block', }} |
|
|
// src={`/_file-server/${v.storageUrl}`}
|
|
|
// src={`/_file-server/${v.storageUrl}`}
|
|
|
src={v.url} |
|
|
src={v.url} |
|
|
width={`200px`} |
|
|
width={`200px`} |
|
|
/> |
|
|
/> |
|
|
</div>)} |
|
|
</div>)} |
|
|
</Carousel> |
|
|
</Carousel> |
|
|
: <div style={{ |
|
|
: <div style={{ |
|
|
width: 200, height: 200, margin: "20px 0px 0px 20px", |
|
|
width: 200, height: 200, margin: "20px 0px 0px 20px", |
|
|
}} /> |
|
|
}} /> |
|
|
} |
|
|
} |
|
|
<div style={{ width: 240, marginLeft: 10, marginTop: 20, display: "flex", flexDirection: "column", justifyContent: "space-around" }}> |
|
|
<div style={{ width: 240, marginLeft: 20, marginTop: 20, display: "flex", flexDirection: "column", justifyContent: "space-around" }}> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
执法日期:<span style={{ |
|
|
执法日期:<span style={{ |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis" |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis" |
|
|
}}> |
|
|
}}> |
|
|
{enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} |
|
|
{enforcementdate && moment(enforcementdate).format("YYYY-MM-DD") || "--"} |
|
|
</span></p> |
|
|
</span></p> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
执法道路:<span title={roadname} style={{ |
|
|
执法道路:<span title={roadname} style={{ |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis", display: 'inline-block', width: 160 |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis", display: 'inline-block', width: 160 |
|
|
}}> |
|
|
}}> |
|
|
{roadname} |
|
|
{roadname} |
|
|
</span></p> |
|
|
</span></p> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
<p style={{ whiteSpace: "nowrap", color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC", display: "flex" }}> |
|
|
执法成果:<span title={enforcementreslt} style={{ |
|
|
执法成果:<span title={enforcementreslt} style={{ |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
color: "#EEF4FF", marginLeft: "10px", fontFamily: " PingFangSC-Medium, PingFang SC", |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis", display: 'inline-block', width: 160 |
|
|
overflow: 'hidden', whiteSpace: "nowrap", textOverflow: "ellipsis", display: 'inline-block', width: 160 |
|
|
}}> |
|
|
}}> |
|
|
{enforcementreslt}</span></p> |
|
|
{enforcementreslt}</span></p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
) |
|
|
) |
|
|
}) |
|
|
}) |
|
|
const renderLeftContent = () => { |
|
|
const renderLeftContent = () => { |
|
@ -219,7 +218,7 @@ const Guanli = (props) => { |
|
|
<div style={{ width: '50%', textAlign: "center", }}>执法成果</div> |
|
|
<div style={{ width: '50%', textAlign: "center", }}>执法成果</div> |
|
|
</div> */} |
|
|
</div> */} |
|
|
{rightitemlist && rightitemlist.length !== 0 ? <AutoRollComponent content={renderContent} |
|
|
{rightitemlist && rightitemlist.length !== 0 ? <AutoRollComponent content={renderContent} |
|
|
containerStyle={{ position: "relative", height: "100%", }} |
|
|
containerStyle={{ position: "relative", height: "100%", margin: "20px" }} |
|
|
divHeight={"100%"} divId={"chart-overview-deviceList"} /> : <NoData style={{ height: "20%" }} />} |
|
|
divHeight={"100%"} divId={"chart-overview-deviceList"} /> : <NoData style={{ height: "20%" }} />} |
|
|
|
|
|
|
|
|
{/* { |
|
|
{/* { |
|
|