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