|
@ -359,7 +359,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
url: "/dataAlyPrediction/parkUsageAly", |
|
|
url: "/dataAlyPrediction/parkUsageAly", |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: "昨日出入场利用率", |
|
|
|
|
|
|
|
|
text: "昨日出入场流率", |
|
|
value: "flowrate", |
|
|
value: "flowrate", |
|
|
img: Lfb, |
|
|
img: Lfb, |
|
|
status: "%", |
|
|
status: "%", |
|
@ -679,7 +679,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
}) || []; |
|
|
}) || []; |
|
|
setRightTwo({ |
|
|
setRightTwo({ |
|
|
title: { |
|
|
title: { |
|
|
text: "{a|" + sum(datas.map((ele) => ele.value)) + "}", |
|
|
|
|
|
|
|
|
text: "{a|" + sum(datas.map((ele) => ele.value)).toFixed(2) + "}", |
|
|
x: "center", |
|
|
x: "center", |
|
|
y: "center", |
|
|
y: "center", |
|
|
subtext: "营业收入", |
|
|
subtext: "营业收入", |
|
@ -816,7 +816,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
min: 0, |
|
|
min: 0, |
|
|
// /max: 50, |
|
|
// /max: 50, |
|
|
// interval: 10, |
|
|
// interval: 10, |
|
|
// splitNumber: 6, //设置坐标轴的分割段数 |
|
|
|
|
|
|
|
|
splitNumber: 2, //设置坐标轴的分割段数 |
|
|
axisLabel: { |
|
|
axisLabel: { |
|
|
formatter: (value) => { |
|
|
formatter: (value) => { |
|
|
return utils.noonenumberFormat(value); |
|
|
return utils.noonenumberFormat(value); |
|
@ -854,11 +854,28 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
x: 50, |
|
|
x: 50, |
|
|
y: 35, |
|
|
y: 35, |
|
|
x2: 30, |
|
|
x2: 30, |
|
|
y2: 70, |
|
|
|
|
|
|
|
|
y2: 30, |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//地图自适应 |
|
|
|
|
|
const psetZoom = () => { |
|
|
|
|
|
const clientWidth = |
|
|
|
|
|
document.documentElement.clientWidth || document.body.clientWidth; |
|
|
|
|
|
const zoom = clientWidth / 1920; |
|
|
|
|
|
const reverseZoom = 1 / zoom; |
|
|
|
|
|
// window.zoom = zoom; |
|
|
|
|
|
// document.getElementsByClassName( |
|
|
|
|
|
// "ParkingOverview" |
|
|
|
|
|
// )[0].style = `zoom:${zoom}`; |
|
|
|
|
|
document.getElementById("map").style = `height:${reverseZoom * 100}%; |
|
|
|
|
|
width:${reverseZoom * 100}%; |
|
|
|
|
|
zoom:${reverseZoom}; |
|
|
|
|
|
transform: scale(${zoom}); |
|
|
|
|
|
transform-origin: 0 0;`; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
//底部车场切换 |
|
|
//底部车场切换 |
|
|
const BottomCar = (val) => { |
|
|
const BottomCar = (val) => { |
|
|
let length = CarRoad.length; |
|
|
let length = CarRoad.length; |
|
@ -1309,9 +1326,10 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
getSelectData(); |
|
|
getSelectData(); |
|
|
if(process.env.NODE_ENV !== "development"){ |
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV !== "development") { |
|
|
GetCar(); |
|
|
GetCar(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
GetAreaShop(); |
|
|
GetAreaShop(); |
|
|
timerption = setInterval(() => { |
|
|
timerption = setInterval(() => { |
|
|
setDayDa(DateDay()); |
|
|
setDayDa(DateDay()); |
|
@ -1319,17 +1337,14 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
return () => { |
|
|
return () => { |
|
|
clearInterval(qftimer); |
|
|
clearInterval(qftimer); |
|
|
clearInterval(timerption); |
|
|
clearInterval(timerption); |
|
|
|
|
|
if (crtimer) { |
|
|
crtimer.close(); |
|
|
crtimer.close(); |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
}, []); |
|
|
}, []); |
|
|
return ( |
|
|
return ( |
|
|
<div className="ParkingOverview"> |
|
|
<div className="ParkingOverview"> |
|
|
<div |
|
|
|
|
|
className="pk_header" |
|
|
|
|
|
// onClick={() => { |
|
|
|
|
|
// navigate("/nav"); |
|
|
|
|
|
// }} |
|
|
|
|
|
></div> |
|
|
|
|
|
|
|
|
<div className="pk_header"></div> |
|
|
<div className="left_home"> |
|
|
<div className="left_home"> |
|
|
<div className="pkh_title">停车业务概览</div> |
|
|
<div className="pkh_title">停车业务概览</div> |
|
|
<div className="dlex_f"> |
|
|
<div className="dlex_f"> |
|
@ -1579,7 +1594,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
{HoShow ? <i></i> : ""} |
|
|
{HoShow ? <i></i> : ""} |
|
|
</div> |
|
|
</div> |
|
|
<div className="right_home"> |
|
|
<div className="right_home"> |
|
|
<div> |
|
|
|
|
|
|
|
|
<div className="bsdsj"> |
|
|
<div className="pkh_title"> |
|
|
<div className="pkh_title"> |
|
|
{CarRoad[CarShow]?.type == 2 ? "收费员排行Top5" : "车场收入排行榜"} |
|
|
{CarRoad[CarShow]?.type == 2 ? "收费员排行Top5" : "车场收入排行榜"} |
|
|
</div> |
|
|
</div> |
|
@ -1645,7 +1660,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
})} |
|
|
})} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
|
|
|
|
|
|
<div className="bsdsj"> |
|
|
<div className="pkh_title"> |
|
|
<div className="pkh_title"> |
|
|
{CarRoad[CarShow]?.type == 2 ? "营业收入分析" : "车场周转率TOP3"} |
|
|
{CarRoad[CarShow]?.type == 2 ? "营业收入分析" : "车场周转率TOP3"} |
|
|
</div> |
|
|
</div> |
|
@ -1692,7 +1707,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
/> |
|
|
/> |
|
|
)} |
|
|
)} |
|
|
</div> |
|
|
</div> |
|
|
<div> |
|
|
|
|
|
|
|
|
<div className="bsdsj"> |
|
|
<div className="pkh_title"> |
|
|
<div className="pkh_title"> |
|
|
停车收入统计 |
|
|
停车收入统计 |
|
|
<Tooltip |
|
|
<Tooltip |
|
|