|
|
@ -1,6 +1,6 @@ |
|
|
|
import React, { useEffect, useState } from 'react'; |
|
|
|
import { connect } from 'react-redux'; |
|
|
|
import { Carousel } from 'antd' |
|
|
|
import { Carousel,Popover } from 'antd' |
|
|
|
import AutoRollComponent from '../build/AutoRollComponent' |
|
|
|
import Module from '../../public/module' |
|
|
|
import LeftItem from './LeftItem' |
|
|
@ -55,15 +55,31 @@ const Guanli = (props) => { |
|
|
|
},[]) |
|
|
|
// let datalist = newArry(30)
|
|
|
|
// datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"})
|
|
|
|
const content = ( |
|
|
|
<div className='popover-content'> |
|
|
|
<img src='/assets/images/quanju/zhichao.png'/> |
|
|
|
<div className='address'> |
|
|
|
<span>检测点</span> |
|
|
|
<span>远不</span> |
|
|
|
<span>地址</span> |
|
|
|
<span>呼呼呼呼呼呼呼呼呼</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
const renderContent = () => { |
|
|
|
return <div style={{height:"100%"}}> |
|
|
|
return <div style={{height:"100%"}} > |
|
|
|
{rightitemlist && rightitemlist.length!==0?rightitemlist?.map(({ id, licensePlate, overrunRate,fine,processingTime,deductPoints }, index) => { |
|
|
|
if(index<120){ |
|
|
|
return <div key={index} className='guanli-right-item'> |
|
|
|
<div className='popover' style={{background:'pink'}}> |
|
|
|
{/* <Popover content={content}> */} |
|
|
|
<span>{licensePlate}</span> |
|
|
|
<span>{overrunRate}%</span> |
|
|
|
<span>{deductPoints?`-${deductPoints}分`:""}和-{fine}{fine?"元":""}</span> |
|
|
|
<span>{processingTime}</span> |
|
|
|
{/* </Popover> */} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
}):""} |
|
|
@ -101,9 +117,9 @@ const Guanli = (props) => { |
|
|
|
<span>处罚</span> |
|
|
|
<span>处理日期</span> |
|
|
|
</div> |
|
|
|
{rightitemlist && rightitemlist.length!==0?<AutoRollComponent content={renderContent()} |
|
|
|
{rightitemlist && rightitemlist.length!==0?<div><AutoRollComponent content={renderContent()} |
|
|
|
containerStyle={{ position: "relative", height: "90%", }} |
|
|
|
divHeight={"100%"} divId={"chart-overview-deviceList"} />:<NoData style={{height:"70%"}}/>} |
|
|
|
divHeight={"100%"} divId={"chart-overview-deviceList"} /></div>:<NoData style={{height:"70%"}}/>} |
|
|
|
</Module> |
|
|
|
</div> |
|
|
|
</> |
|
|
|