|
|
@ -1,6 +1,6 @@ |
|
|
|
import React, { useEffect, useState } from 'react'; |
|
|
|
import { connect } from 'react-redux'; |
|
|
|
import { Carousel } from 'antd' |
|
|
|
import { Carousel,Tooltip } from 'antd' |
|
|
|
import AutoRollComponent from '../build/AutoRollComponent' |
|
|
|
import Module from '../../public/module' |
|
|
|
import LeftItem from './LeftItem' |
|
|
@ -55,15 +55,43 @@ const Guanli = (props) => { |
|
|
|
},[]) |
|
|
|
// let datalist = newArry(30)
|
|
|
|
// datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"})
|
|
|
|
// const content = (
|
|
|
|
|
|
|
|
// );
|
|
|
|
const renderContent = () => { |
|
|
|
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'> |
|
|
|
<Tooltip title={ <div className='popover-content'> |
|
|
|
<div style={{ width: "100%", height: "100%", marginTop: "0"}}> |
|
|
|
|
|
|
|
{/* <img src='/assets/images/leadership/beijinglan.png' style={{ width: "100%", height: "100%" }} /> */} |
|
|
|
<div style={{ position: "absolute", top: "0", width: "50%", padding: "20px" }}> |
|
|
|
<img src='/assets/images/leadership/yuanxing.png' style={{ width: "100%", height: "100%" }} /> |
|
|
|
<p style={{ color: "#09BAFF", position: "absolute", top: "42%", left: "27%", fontSize: "29px", fontFamily: "YouSheBiaoTiHei" }}>{overrunRate?overrunRate:0}{/* {item.overrunRate ? item.overrunRate + "%" : "--"} */}</p> |
|
|
|
<p style={{ color: "rgba(216,240,255,0.8)", position: "absolute", top: "60%", left: "43%", fontSize: "14px" }}>超限</p> |
|
|
|
</div> |
|
|
|
<div style={{ position: "absolute", top: "0", width: "50%", left: "50%", top:'5px'}}> |
|
|
|
<p style={{ color: "rgba(216,240,255,0.8)", marginTop: "30px", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC" }}>车牌号<span style={{ color: "#EEF4FF", marginLeft: "33px", fontFamily: " PingFangSC-Medium, PingFang SC" }}>{licensePlate}{/* {item.licensePlate} */}</span></p> |
|
|
|
<p style={{ color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC" }}>检测点<span style={{ color: "#EEF4FF", marginLeft: "30px", fontFamily: " PingFangSC-Medium, PingFang SC" }}>123456</span></p> |
|
|
|
<p style={{ color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC" }}>处罚<span style={{ color: "#FF0001", marginLeft: "50px", fontFamily: " PingFangSC-Medium, PingFang SC" }}>{deductPoints?`-${deductPoints}分`:""}和-{fine}{fine?"元":""}{/* {item.deductPoints ? "-" + item.deductPoints + "分" : ""}{item.deductPoints && item.fine ? "和" : ""}{item.fine ? "-" + item.fine + "元" : ""}{item.deductPoints || item.fine ? "" : "--"} */}</span></p> |
|
|
|
<p style={{ color: "rgba(216,240,255,0.8)", fontSize: "14px", fontFamily: "PingFangSC-Regular, PingFang SC" }}>日期<span style={{ color: "#EEF4FF", marginLeft: "50px", fontFamily: " PingFangSC-Medium, PingFang SC" }}>{processingTime}{/* {item.processingTime ? item.processingTime : "--"} */}</span></p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>} |
|
|
|
placement="leftTop" |
|
|
|
overlayStyle={{ minWidth:400, minHeight: 212,padding:0,margin:0,backgroundImage:`url(../../../../../assets/images/leadership/beijinglan.png)`}} |
|
|
|
overlayClassName='popover' |
|
|
|
|
|
|
|
> |
|
|
|
<span>{licensePlate}</span> |
|
|
|
<span>{overrunRate}%</span> |
|
|
|
<span>{deductPoints?`-${deductPoints}分`:""}和-{fine}{fine?"元":""}</span> |
|
|
|
<span>{processingTime}</span> |
|
|
|
</Tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
} |
|
|
|
}):""} |
|
|
@ -101,9 +129,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> |
|
|
|
</> |
|
|
|