Browse Source

治超详情

dev
yangsen 2 years ago
parent
commit
8fef35340c
  1. 6
      web/client/src/sections/quanju/containers/footer/build/index.js
  2. 20
      web/client/src/sections/quanju/containers/footer/build/style.less
  3. 46
      web/client/src/sections/quanju/containers/footer/guanli/index.js
  4. 463
      web/client/src/sections/quanju/containers/footer/guanli/style.less

6
web/client/src/sections/quanju/containers/footer/build/index.js

@ -143,7 +143,7 @@ const Build = (props) => {
return ( return (
<> <>
<div className='bgbuild-left'> <div className='bgbuild-left'>
<Module title={"各乡镇在建公路工程"} style={{ <Module title={"在建公路工程"} style={{
width: "100%", width: "100%",
height: " 33%" height: " 33%"
}} customize={true}> }} customize={true}>
@ -160,11 +160,11 @@ const Build = (props) => {
</div> */} </div> */}
<img src='/assets/images/quanju/yuanhuan.webp' className='build-left-top-center' /> <img src='/assets/images/quanju/yuanhuan.webp' className='build-left-top-center' />
<div className='build-left-top-item'> <div className='build-left-top-item'>
<div>{buildingnumber?.buildedRoad || 0}</div> <div>{sunonlineproject || 0}</div>
<div> <div>
{/* <i>&#9658;</i> */} {/* <i>&#9658;</i> */}
{/* <span /> */} {/* <span /> */}
<span>在建公路/公里</span> <span>在建数量</span>
</div> </div>
</div> </div>
</div> : <NoData />} </div> : <NoData />}

20
web/client/src/sections/quanju/containers/footer/build/style.less

@ -288,12 +288,20 @@
color: #E9F7FF; color: #E9F7FF;
} }
} }
img{ .img1{
width: 19%; width: 35%;
position: absolute; position: absolute;
left: 16%; left: 30%;
top:29% top:5%;
} }
.img2{
width: 40%;
position: absolute;
left: 40%;
top:5%;
z-index: 10;
}
} }
} }

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

@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { Carousel,Popover } from 'antd' import { Carousel,Tooltip } from 'antd'
import AutoRollComponent from '../build/AutoRollComponent' import AutoRollComponent from '../build/AutoRollComponent'
import Module from '../../public/module' import Module from '../../public/module'
import LeftItem from './LeftItem' import LeftItem from './LeftItem'
@ -55,30 +55,42 @@ const Guanli = (props) => {
},[]) },[])
// let datalist = newArry(30) // let datalist = newArry(30)
// datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"}) // datalist.fill({licensePlate:"赣A44454",overrunRate:"30%",fine:"200元",processingTime:"2020年4月1日"})
const content = ( // 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 = () => { 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) => { {rightitemlist && rightitemlist.length!==0?rightitemlist?.map(({ id, licensePlate, overrunRate,fine,processingTime,deductPoints }, index) => {
if(index<120){ if(index<120){
return <div key={index} className='guanli-right-item'> return <div key={index} className='guanli-right-item'>
<div className='popover' style={{background:'pink'}}> <div className='popover'>
{/* <Popover content={content}> */} <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>{licensePlate}</span>
<span>{overrunRate}%</span> <span>{overrunRate}%</span>
<span>{deductPoints?`-${deductPoints}`:""}-{fine}{fine?"元":""}</span> <span>{deductPoints?`-${deductPoints}`:""}-{fine}{fine?"元":""}</span>
<span>{processingTime}</span> <span>{processingTime}</span>
{/* </Popover> */} </Tooltip>
</div> </div>
</div> </div>
} }

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

@ -1,252 +1,301 @@
@media screen and (max-width:1366px){ @media screen and (max-width:1366px) {
html{ html {
font-size: 12px; font-size: 12px;
} }
} }
// .guanli{ // .guanli{
// // box-sizing: border-box; // // box-sizing: border-box;
// padding: 0 15px 0 15px; // padding: 0 15px 0 15px;
// width: 100%; // width: 100%;
// height: 100%; // height: 100%;
// position: relative; // position: relative;
// display: flex; // display: flex;
// justify-content: space-between; // justify-content: space-between;
.guanli-left{ .guanli-left {
width: 25%; width: 25%;
height: 100%; height: 100%;
position: absolute; position: absolute;
left: 0; left: 0;
.guanli-left-item{
box-sizing: border-box; .guanli-left-item {
width: 85%; box-sizing: border-box;
position: relative; width: 85%;
// height: 30%; position: relative;
height: 24vh; // height: 30%;
margin: 0 auto 3%; height: 24vh;
margin: 0 auto 3%;
display: flex;
align-items: center;
padding: 0 10%;
justify-content: space-between;
border: 2px solid rgba(28, 96, 254, 0.5000);
.guanli-left-item-left {
width: 45%;
height: 60%;
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
padding: 0 10%;
justify-content: space-between; span {
border: 2px solid rgba(28,96,254,0.5000); font-size: 1.25rem;
.guanli-left-item-left{ font-family: PingFangSC-Regular, PingFang SC;
width: 45%; font-weight: 400;
height: 60%; color: rgba(216, 240, 255, 0.8000);
}
div {
display: flex; display: flex;
flex-direction: column; justify-content: center;
align-items: center; // align-items: ;
span{ font-size: 2.125rem;
font-size: 1.25rem; font-family: YouSheBiaoTiHei;
color: #FFFFFF;
height: 70%;
width: 100%;
background: url('/assets/images/quanju/guanlijiance_1.png') no-repeat;
background-size: 100% 80%;
background-position: center bottom;
span {
font-size: 1rem;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: rgba(216,240,255,0.8000); padding-top: 10%;
} margin-left: 5px;
div{ // height: 0;
display: flex; color: rgba(216, 240, 255, 0.8000);
justify-content: center;
// align-items: ;
font-size: 2.125rem;
font-family: YouSheBiaoTiHei;
color: #FFFFFF;
height: 70%;
width: 100%;
background: url('/assets/images/quanju/guanlijiance_1.png') no-repeat;
background-size: 100% 80%;
background-position: center bottom;
span{
font-size: 1rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
padding-top: 10%;
margin-left: 5px;
// height: 0;
color: rgba(216,240,255,0.8000);
}
} }
// background-color: pink;
} }
.guanli-left-item-right{
width: 40%; // background-color: pink;
height: 50%; }
position: relative;
span{ .guanli-left-item-right {
position: absolute; width: 40%;
width: 8px; height: 50%;
height: 8px; position: relative;
background-color: #fff;
top:1.5%; span {
left: 50%; position: absolute;
z-index: 10; width: 8px;
border-radius: 4px; height: 8px;
display: block; background-color: #fff;
} top: 1.5%;
left: 50%;
// background-color: pink; z-index: 10;
border-radius: 4px;
display: block;
} }
// background-color: pink; // background-color: pink;
} }
// background-color: pink;
} }
.guanli-right{ }
width: 25%;
height: 100%; .guanli-right {
position: absolute; width: 25%;
right: 0; height: 100%;
.guanli-right-top{ position: absolute;
width: 100%; right: 0;
.guanli-right-top {
width: 100%;
// height: 5%; // height: 5%;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
padding-right: 10px; padding-right: 10px;
img{
img {
width: 4%; width: 4%;
// height: 40%; // height: 40%;
} }
span{
&:nth-child(2){ span {
&:nth-child(2) {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: rgba(216,240,255,0.8000); color: rgba(216, 240, 255, 0.8000);
margin:0 10px 0 2px margin: 0 10px 0 2px
} }
&:nth-child(3){
&:nth-child(3) {
font-size: 18px; font-size: 18px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
margin-right: 10px; margin-right: 10px;
}
&:nth-child(4){
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(216,240,255,0.8000);
}
}
}
.guanli-right-title{
width: 90%;
height: 5%;
margin: auto;
display: flex;
align-items: center;
justify-content: space-around;
background: rgba(21,77,160,0.2000);
span{
font-size: 12px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
flex:1;
text-align: center;
// &:nth-child(1){
// }
} }
}
.guanli-right-item{ &:nth-child(4) {
width: 90%; font-size: 14px;
// height: 4%;
height: 3vh;
margin: auto;
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;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: rgba(216,240,255,0.8000); color: rgba(216, 240, 255, 0.8000);
line-height: 20px;
flex:1;
text-align: center;
// &:nth-child(1){
// }
} }
} }
} }
.popover-content{ .guanli-right-title {
background-color: red; width: 90%;
.address{ height: 5%;
width: 80%; margin: auto;
height: 80%; display: flex;
top: -1%; align-items: center;
position: absolute; justify-content: space-around;
background-color: aqua; background: rgba(21, 77, 160, 0.2000);
span{
&:nth-child(1){ span {
width: 42px; font-size: 12px;
height: 20px; font-family: PingFangSC-Medium, PingFang SC;
display: inline-block; font-weight: 500;
overflow-wrap: break-word; color: #FFFFFF;
color: rgba(216, 240, 255, 0.8); flex: 1;
font-size: 14px; text-align: center;
font-family: PingFangSC-Regular; // &:nth-child(1){
white-space: nowrap;
line-height: 20px; // }
text-align: left;
}
&:nth-child(2){
width: 28px;
height: 20px;
display: inline-block;
overflow-wrap: break-word;
color: rgba(238, 244, 255, 1);
font-size: 14px;
font-family: PingFangSC-Medium;
white-space: nowrap;
line-height: 20px;
text-align: left;
}
&:nth-child(3){
width: 28px;
height: 20px;
display: inline-block;
overflow-wrap: break-word;
color: rgba(216, 240, 255, 0.8);
font-size: 14px;
font-family: PingFangSC-Regular;
white-space: nowrap;
line-height: 20px;
text-align: right;
}
&:nth-child(4){
width: 126px;
height: 20px;
display: inline-block;
overflow-wrap: break-word;
color: rgba(255, 255, 255, 1);
font-size: 14px;
font-family: PingFangSC-Medium;
white-space: nowrap;
line-height: 20px;
text-align: right;
}
} }
} }
}
.popover{ .guanli-right-item {
background-color: aqua; width: 90%;
.ant-popover-arrow{ // height: 4%;
.ant-popover-arrow-content{ height: 3vh;
display:none; margin: auto;
} display: flex;
span{ align-items: center;
display:none; justify-content: space-around;
&:hover {
background: linear-gradient(270deg, rgba(0, 124, 230, 0) 0%, rgba(0, 70, 200, 0.8700) 100%);
} }
}
.ant-popover-inner{ // background: rgba(21,77,160,0.2000);
.ant-popover-inner-content{ span {
padding: 0; font-size: 0.875rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: rgba(216, 240, 255, 0.8000);
line-height: 20px;
flex: 1;
text-align: center;
// &:nth-child(1){
// }
} }
} }
} }
.popover-content {
// background-color: red;
// .ant-popover-inner-content{
// padding: 0!important;
// }
// .address {
// width: 80%;
// height: 80%;
// top: 10%;
// position: absolute;
// // background-color: pink;
// .address1 {
// width: 194px;
// height: 20px;
// margin: 16px 0 24px 26px;
// span {
// &:nth-child(1) {
// margin-right: 20px;
// width: 42px;
// height: 20px;
// display: inline-block;
// overflow-wrap: break-word;
// color: rgba(216, 240, 255, 0.8);
// font-size: 14px;
// font-family: PingFangSC-Regular;
// white-space: nowrap;
// line-height: 20px;
// text-align: left;
// }
// &:nth-child(2) {
// width: 28px;
// height: 20px;
// display: inline-block;
// overflow-wrap: break-word;
// color: rgba(238, 244, 255, 1);
// font-size: 14px;
// font-family: PingFangSC-Medium;
// white-space: nowrap;
// line-height: 20px;
// text-align: left;
// }
// }
// }
// .address2 {
// width: 194px;
// height: 20px;
// margin: 16px 0 24px 26px;
// span {
// &:nth-child(1) {
// margin-right: 35px;
// width: 28px;
// height: 20px;
// display: inline-block;
// overflow-wrap: break-word;
// color: rgba(216, 240, 255, 0.8);
// font-size: 14px;
// font-family: PingFangSC-Regular;
// white-space: nowrap;
// line-height: 20px;
// text-align: right;
// }
// &:nth-child(2) {
// width: 126px;
// height: 20px;
// display: inline-block;
// overflow-wrap: break-word;
// color: rgba(255, 255, 255, 1);
// font-size: 14px;
// font-family: PingFangSC-Medium;
// white-space: nowrap;
// line-height: 20px;
// text-align: right;
// }
// }
// }
// }
}
.popover {
.ant-tooltip-inner{
min-width: 0 !important;
min-height: 0 !important;
background-color: rgba(0, 0, 0, 0) !important;
}
// .ant-popover-arrow {
// .ant-popover-arrow-content {
// display: none;
// }
// span {
// display: none;
// }
// }
// .ant-popover-inner {
// .ant-popover-inner-content {
// padding: 0;
// }
// }
// .ant-popover-inner{padding:0 !important;}
}
Loading…
Cancel
Save