Browse Source

Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev

release_0.0.1
巴林闲侠 2 years ago
parent
commit
649b011f22
  1. 17
      web/client/src/sections/quanju/containers/footer/guanli/index.js
  2. 3
      web/client/src/sections/quanju/containers/footer/guanli/style.less

17
web/client/src/sections/quanju/containers/footer/guanli/index.js

@ -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>
}

3
web/client/src/sections/quanju/containers/footer/guanli/style.less

@ -146,6 +146,9 @@
display: flex;
align-items: center;
justify-content: space-around;
&:hover{
background:linear-gradient(270deg, rgba(0,124,230,0) 0%, rgba(0,70,200,0.8700) 100%);
}
// background: rgba(21,77,160,0.2000);
span{
font-size: 0.875rem;

Loading…
Cancel
Save