Browse Source

修复管理大屏bug

release_0.0.4
dengyinhuan 3 years ago
parent
commit
a3fe9bee43
  1. 2
      web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js
  2. 8
      web/client/src/sections/quanju/containers/footer/guanli/index.js

2
web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js

@ -109,7 +109,7 @@ export default function LeftItem({datas}) {
{/* <span style={{position:"absolute",width:"10%",color:"#FFF",backgroundColor:'rgba(216, 240, 255, 0.1)',right:"5%",textAlign:"center",top:"2%"}}>条</span> */}
<div className='guanli-left-item-left'>
<span>{datas.name}</span>
<div>{datas.total} <span></span></div>
<div>{datas.total} <span></span></div>
</div>
<div className='guanli-left-item-right'>
<span></span>

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

@ -18,7 +18,7 @@ const Guanli = (props) => {
return parseInt(b.total) - parseInt(a.total)
})
setleftDatas(res.payload.data)
console.log(res.payload.data,'哈哈哈')
// console.log(res.payload.data,'哈哈哈')
}
const data_string=(str)=> {
str.match('/([^.]*)$/g')
@ -44,9 +44,9 @@ const Guanli = (props) => {
d.sort((a, b) => b.processingTime.localeCompare(a.processingTime))
setrightDatas(res.payload.data)
setrightitemlist(d)
// console.log(d,'对比的数据')
console.log(d,'对比的数据')
// console.log(d2,'完美')
// console.log(res.payload.data,'嘿嘿嘿')
console.log(res.payload.data,'嘿嘿嘿')
}
useEffect(()=>{
requestleftDatas();
@ -57,7 +57,7 @@ const Guanli = (props) => {
const renderContent = () => {
return <div style={{height:"100%"}}>
{rightitemlist && rightitemlist.length!==0?rightitemlist?.map(({ id, licensePlate, overrunRate,fine,processingTime }, index) => {
if(index<30){
if(index<120){
return <div key={index} className='guanli-right-item'>
<span>{licensePlate}</span>
<span>{overrunRate}%</span>

Loading…
Cancel
Save