|
|
@ -18,22 +18,25 @@ const Guanli = (props) => { |
|
|
|
const requestRightDatas = async()=>{ |
|
|
|
const res = await dispatch(getjiandetail()) |
|
|
|
setrightDatas(res.payload.data) |
|
|
|
console.log(res,'嘿嘿嘿') |
|
|
|
// console.log(res,'嘿嘿嘿')
|
|
|
|
} |
|
|
|
useEffect(()=>{ |
|
|
|
requestleftDatas(); |
|
|
|
requestRightDatas() |
|
|
|
},[]) |
|
|
|
|
|
|
|
// let datalist = newArry(35)
|
|
|
|
// datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"})
|
|
|
|
const renderContent = () => { |
|
|
|
return <div style={{height:"100%"}}> |
|
|
|
{rightDatas && rightDatas.length!==0?rightDatas.overSpeedList.map(({ id, licensePlate, overrunRate,fine,processingTime }, index) => { |
|
|
|
if(index<30){ |
|
|
|
return <div key={index} className='guanli-right-item'> |
|
|
|
<span>{licensePlate}</span> |
|
|
|
<span>{overrunRate}%</span> |
|
|
|
<span>{fine}</span> |
|
|
|
<span>{processingTime}</span> |
|
|
|
</div> |
|
|
|
<span>{licensePlate}</span> |
|
|
|
<span>{overrunRate}%</span> |
|
|
|
<span>{fine}{fine?"元":""}</span> |
|
|
|
<span>{processingTime}</span> |
|
|
|
</div> |
|
|
|
} |
|
|
|
}):""} |
|
|
|
</div> |
|
|
|
} |
|
|
|