|
|
@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; |
|
|
|
import { ResultFlowResult, DataSelect } from "@/components"; |
|
|
|
import { Select, Input, Button, Table, message, Pagination, DatePicker, Modal, Cascader, Tooltip } from "antd"; |
|
|
|
import { useSessionStorageState } from "ahooks"; |
|
|
|
import { dictionary } from "@/config/common"; |
|
|
|
import { lineChartOption } from "@/config/character.config.js"; |
|
|
|
import { useNavigate } from "react-router-dom"; |
|
|
|
import { setTabList } from "@/store/common.js"; |
|
|
|
import { useSelector, useDispatch } from "react-redux"; |
|
|
@ -153,7 +153,7 @@ function ParkingAlyOverview() { |
|
|
|
end_time: end, |
|
|
|
}); |
|
|
|
}; |
|
|
|
// |
|
|
|
//停车趋势分析,折线图 |
|
|
|
const getRevenueOption = (data) => { |
|
|
|
// 获取所有地区名称 |
|
|
|
data.sort((a, b) => { |
|
|
@ -209,32 +209,7 @@ function ParkingAlyOverview() { |
|
|
|
}, |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
setRevenueData({ |
|
|
|
title: { |
|
|
|
text: "", |
|
|
|
textStyle: { |
|
|
|
color: "#fff", |
|
|
|
}, |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
trigger: "axis", |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
data: xAxisData, |
|
|
|
type: 'category', |
|
|
|
axisLine: { |
|
|
|
lineStyle: { |
|
|
|
color: "#bbb", |
|
|
|
}, |
|
|
|
}, |
|
|
|
axisLabel: { |
|
|
|
textStyle: { |
|
|
|
color: "#bbb", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
lineChartOption.yAxis= { |
|
|
|
type: "value", |
|
|
|
name: '泊位利用率', |
|
|
|
min: 0, |
|
|
@ -248,9 +223,7 @@ function ParkingAlyOverview() { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
color: ["#4DC3FF", "#FFD767"], |
|
|
|
//series: seriesData, |
|
|
|
series: |
|
|
|
lineChartOption.series = |
|
|
|
{ |
|
|
|
"name": "西区", |
|
|
|
"type": "line", |
|
|
@ -260,13 +233,66 @@ function ParkingAlyOverview() { |
|
|
|
24 |
|
|
|
] |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
x: 50, |
|
|
|
y: 55, |
|
|
|
x2: 70, |
|
|
|
y2: 20, |
|
|
|
}, |
|
|
|
}); |
|
|
|
setRevenueData(lineChartOption) |
|
|
|
|
|
|
|
console.log(212, lineChartOption) |
|
|
|
// setRevenueData({ |
|
|
|
// title: { |
|
|
|
// text: "", |
|
|
|
// textStyle: { |
|
|
|
// color: "#fff", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// tooltip: { |
|
|
|
// trigger: "axis", |
|
|
|
// }, |
|
|
|
// xAxis: { |
|
|
|
// data: xAxisData, |
|
|
|
// type: 'category', |
|
|
|
// axisLine: { |
|
|
|
// lineStyle: { |
|
|
|
// color: "#bbb", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// axisLabel: { |
|
|
|
// textStyle: { |
|
|
|
// color: "#bbb", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// yAxis: { |
|
|
|
// type: "value", |
|
|
|
// name: '泊位利用率', |
|
|
|
// min: 0, |
|
|
|
// // /max: 50, |
|
|
|
// interval: 10, |
|
|
|
// splitNumber: 6, //设置坐标轴的分割段数 |
|
|
|
// axisLabel: { |
|
|
|
// formatter: "{value}%", |
|
|
|
// textStyle: { |
|
|
|
// color: "#bbb", |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
// color: ["#4DC3FF", "#FFD767"], |
|
|
|
// //series: seriesData, |
|
|
|
// series: |
|
|
|
// { |
|
|
|
// "name": "西区", |
|
|
|
// "type": "line", |
|
|
|
// "data": [ |
|
|
|
// 12, |
|
|
|
// 12, |
|
|
|
// 24 |
|
|
|
// ] |
|
|
|
// }, |
|
|
|
// grid: { |
|
|
|
// x: 50, |
|
|
|
// y: 55, |
|
|
|
// x2: 70, |
|
|
|
// y2: 20, |
|
|
|
// }, |
|
|
|
// }); |
|
|
|
}; |
|
|
|
|
|
|
|
function getParkingIncome() { |
|
|
|