|
@ -56,12 +56,13 @@ import Kx from "@/assets/images/equip/home/kx.png"; |
|
|
import Yc from "@/assets/images/equip/home/yc.png"; |
|
|
import Yc from "@/assets/images/equip/home/yc.png"; |
|
|
import Poto from "@/assets/images/equip/home/poto.png"; |
|
|
import Poto from "@/assets/images/equip/home/poto.png"; |
|
|
import BaseMap from "./Map"; |
|
|
import BaseMap from "./Map"; |
|
|
|
|
|
import moment from "moment"; |
|
|
// import errorImg from "@/assets/images/layout/error.png" |
|
|
// import errorImg from "@/assets/images/layout/error.png" |
|
|
// import { useLocation } from "react-router-dom"; |
|
|
// import { useLocation } from "react-router-dom"; |
|
|
let timer = null; |
|
|
let timer = null; |
|
|
let qftimer = null; |
|
|
let qftimer = null; |
|
|
let crtimer = null; |
|
|
let crtimer = null; |
|
|
let option = null; |
|
|
|
|
|
|
|
|
let timerption = null; |
|
|
const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
return { |
|
|
return { |
|
|
user: state.user, |
|
|
user: state.user, |
|
@ -477,7 +478,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
]); |
|
|
]); |
|
|
//底部车场切换展示 |
|
|
//底部车场切换展示 |
|
|
const [CarShow, setCarShow] = useState(0); |
|
|
const [CarShow, setCarShow] = useState(0); |
|
|
|
|
|
|
|
|
|
|
|
const [DayDa, setDayDa] = useState(""); |
|
|
//页码 |
|
|
//页码 |
|
|
function onShowSizeChange(pn, size) { |
|
|
function onShowSizeChange(pn, size) { |
|
|
let temFormData = {}; |
|
|
let temFormData = {}; |
|
@ -614,7 +615,10 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
setOption([]); |
|
|
setOption([]); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//日期 |
|
|
|
|
|
const DateDay = () => { |
|
|
|
|
|
return moment().format("YYYY/MM/DD HH:mm"); |
|
|
|
|
|
}; |
|
|
//右侧时间切换 |
|
|
//右侧时间切换 |
|
|
const SelectDay = (str, val) => { |
|
|
const SelectDay = (str, val) => { |
|
|
if (str == 1) { |
|
|
if (str == 1) { |
|
@ -752,7 +756,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
}; |
|
|
}; |
|
|
//右下 |
|
|
//右下 |
|
|
const getRevenueOption = ( |
|
|
const getRevenueOption = ( |
|
|
data = [ |
|
|
|
|
|
|
|
|
datas = [ |
|
|
{ |
|
|
{ |
|
|
key: "", |
|
|
key: "", |
|
|
value: 0, |
|
|
value: 0, |
|
@ -760,7 +764,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
] |
|
|
] |
|
|
) => { |
|
|
) => { |
|
|
// 获取所有地区名称 |
|
|
// 获取所有地区名称 |
|
|
|
|
|
|
|
|
|
|
|
let data = datas.sort((a, b) => a.key - b.key); |
|
|
setRightThree({ |
|
|
setRightThree({ |
|
|
title: { |
|
|
title: { |
|
|
text: "", |
|
|
text: "", |
|
@ -847,7 +851,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
grid: { |
|
|
grid: { |
|
|
x: 50, |
|
|
x: 50, |
|
|
y: 35, |
|
|
y: 35, |
|
|
x2: 20, |
|
|
|
|
|
|
|
|
x2: 30, |
|
|
y2: 30, |
|
|
y2: 30, |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
@ -1298,8 +1302,12 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
getSelectData(); |
|
|
getSelectData(); |
|
|
GetCar(); |
|
|
GetCar(); |
|
|
GetAreaShop(); |
|
|
GetAreaShop(); |
|
|
|
|
|
timerption = setInterval(() => { |
|
|
|
|
|
setDayDa(DateDay()); |
|
|
|
|
|
}, 1000); |
|
|
return () => { |
|
|
return () => { |
|
|
clearInterval(qftimer); |
|
|
clearInterval(qftimer); |
|
|
|
|
|
clearInterval(timerption); |
|
|
crtimer.close(); |
|
|
crtimer.close(); |
|
|
}; |
|
|
}; |
|
|
}, []); |
|
|
}, []); |
|
@ -1551,6 +1559,7 @@ const ParkingOverview = connect(function mapStateToProps(state) { |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div className="r_xd">{DayDa}</div> |
|
|
<div |
|
|
<div |
|
|
className="r_xld" |
|
|
className="r_xld" |
|
|
onClick={() => { |
|
|
onClick={() => { |
|
|