diff --git a/src/components/Export/ExportBtnNew/index.jsx b/src/components/Export/ExportBtnNew/index.jsx
index 4dd006b..66c71d2 100644
--- a/src/components/Export/ExportBtnNew/index.jsx
+++ b/src/components/Export/ExportBtnNew/index.jsx
@@ -171,7 +171,7 @@ function ExportBtn(props) {
} else {
ajax({ url, type: ajaxType, data: { export_type: checkedType, start, end, isimg:0, ...formData, ...other } }).then((res) => {
if (res.status === 20000) {
- downloadFile(res.data.url)
+ downloadFile(res.data.url || res.data.export_url)
handleCancel()
// setInProcess("2");
// setProcess(res.data?.task_url)
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
index 19df23c..1e1b557 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/CarTypeAly/loadable.jsx
@@ -23,8 +23,8 @@ function CarTypeAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1',
type: 'region',
operator_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
index 1f65e12..90df4f0 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/NightParkStat/loadable.jsx
@@ -23,8 +23,8 @@ function NightParkStat() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
index 0c039ee..7bd1a0f 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkBerthAly/loadable.jsx
@@ -184,6 +184,10 @@ function ParkBerthAly() {
acr.push(item.date)
acc.push(acr)
})
+ console.log(data, acc)
+ // acc.map((item)=>{
+
+ // })
// 构建X轴数据
const xAxisData = dates.map((date) => {
return {
@@ -270,6 +274,7 @@ function ParkBerthAly() {
trigger: 'item',
//formatter: '{b0}: 实到 {c0} 人'
formatter: (params) => {
+ //console.log(params)
return `
${moment(params.data[2]).format('YYYY年MM月DD日')}(${getWeek(params.data[2])})
全市日均泊位周转次数:${totalData.all_turnover + '(次)'}
@@ -536,7 +541,7 @@ function ParkBerthAly() {
>
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
index 0853227..694ae6a 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkTurnoverAly/loadable.jsx
@@ -23,8 +23,8 @@ function ParkTurnoverAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1', //
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
index 9b4b546..6e87e8d 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkUsageAly/loadable.jsx
@@ -24,8 +24,8 @@ function ParkUsageAly() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
index a7ff752..1a943b2 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyDuration/loadable.jsx
@@ -23,8 +23,8 @@ function ParkingAlyDuration() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
index bfbe6f9..17b1283 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx
@@ -24,8 +24,8 @@ function ParkingAlyOverview() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
date_type: '1',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
index c444116..7706fdc 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyPeriod/loadable.jsx
@@ -19,8 +19,8 @@ function ParkingAlyPeriod() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
car_parking_type: '3',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
index a2b90b1..d2dec7c 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyReport/loadable.jsx
@@ -23,8 +23,8 @@ function ParkingAlyReport() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
date_type: '1',
car_parking_type: '3',
operator_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
index 2d95165..78b3213 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingLiveData/loadable.jsx
@@ -24,8 +24,8 @@ function ParkingLiveData() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
operator_id: '0',
area_id: '0',
};
diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
index aa2a3e4..30008b1 100644
--- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/TemporaryParkStat/loadable.jsx
@@ -23,8 +23,8 @@ function TemporaryParkStat() {
const [areaList, setAreaList] = useState([]);
// 默认数据
const defaultData = {
- start_time: moment().subtract('days').startOf('day').format("YYYY-MM-DD"),
- end_time: moment().endOf("day").format("YYYY-MM-DD"),
+ start_time: moment().subtract(1, 'days').startOf('day').format("YYYY-MM-DD"),
+ end_time: moment().subtract(1, 'days').endOf("day").format("YYYY-MM-DD"),
car_parking_type: '3',
operator_id: '0',
area_id: '0',
diff --git a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/PlateArrear/index.jsx b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/PlateArrear/index.jsx
index d49e58d..237874a 100644
--- a/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/PlateArrear/index.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingIncomeAly/ArrearageAly/PlateArrear/index.jsx
@@ -194,7 +194,7 @@ const ModalDetail = (props) => {
})
const [pageInfo, setPageInfo] = useState({
pn: 1,
- length: 10
+ length: 15
})
const tableColumns = [
@@ -232,19 +232,28 @@ const ModalDetail = (props) => {
const paginationProps = {
className: "pagination-common",
- showQuickJumper: true,
+ // showQuickJumper: true,
showSizeChanger: true,
current: pageInfo.pn,
+ showTotal: (total) => `共 ${total} 条数据`,
total: resultData?.totalRecords,
pageSize: pageInfo.length,
pageSizeOptions: Array.from(
new Set([...[15], ...(dictionary?.pageSizeOptions || [])])
),
onChange: (current, size) => {
- setPageInfo({
- ...pageInfo,
- ...{ pn: current, length: size }
- });
+ // 切换每页条数
+ if (size != pageInfo.length) {
+ setPageInfo({
+ ...pageInfo,
+ ...{ pn: 1, length: size }
+ });
+ } else { // 翻页
+ setPageInfo({
+ ...pageInfo,
+ ...{ pn: current, length: size }
+ });
+ }
}
}
@@ -255,7 +264,7 @@ const ModalDetail = (props) => {
setTableLoading(false)
setResultData({
list: res.data,
- totalRecords: res.totalRecords
+ totalRecords: Number(res.totalRecords || 0)
})
}
})
@@ -279,7 +288,7 @@ const ModalDetail = (props) => {
className="yisa-modal detail-modal"
title={"弹窗详情"}
open={visible}
- width={700}
+ width={1100}
onCancel={onCancel}
onOk={onOk}
>
@@ -295,7 +304,7 @@ const ModalDetail = (props) => {
dataSource={resultData?.list || []}
columns={tableColumns}
pagination={false}
- scroll={{y: 200}}
+ scroll={{y: 500}}
loading={tableLoading}
/>
diff --git a/src/pages/DataAnalysisPrediction/ParkingOverview/index.scss b/src/pages/DataAnalysisPrediction/ParkingOverview/index.scss
index 6e47301..29a1694 100644
--- a/src/pages/DataAnalysisPrediction/ParkingOverview/index.scss
+++ b/src/pages/DataAnalysisPrediction/ParkingOverview/index.scss
@@ -464,6 +464,31 @@ $color-primary : var(--color-primary);
.bsdsj {
background: rgba(1, 5, 14, 0.64);
padding-bottom: 4px;
+ position: relative;
+
+ .pos_zs {
+ position: absolute;
+ top: 5px;
+ right: 0;
+ border: 1px solid rgba(117,
+ 221,
+ 255, .5);
+ ;
+ border-radius: 4px;
+ display: flex;
+ overflow: hidden;
+
+ span {
+ padding: 2px 3px;
+ cursor: pointer;
+ }
+
+ .qse {
+ background-color: rgba(117,
+ 221,
+ 255, .3);
+ }
+ }
}
.day_select {
diff --git a/src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx
index 8ec2387..fd392b8 100644
--- a/src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx
+++ b/src/pages/DataAnalysisPrediction/ParkingOverview/loadable.jsx
@@ -394,6 +394,8 @@ const ParkingOverview = connect(function mapStateToProps(state) {
const [BoOpen, setBoOpen] = useState(false);
//泊位详情
const [BoOpenDetail, setBoOpenDetail] = useState(false);
+ //泊车公司周转或收费
+ const [Roadturn, setRoadturn] = useState(true);
//商户
const [Yunying, setYunying] = useState([]);
@@ -773,7 +775,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
show: false,
boxHeight: boxHeight, //圆环的高度
left: 0,
- top: 0, //3d饼图的位置
+ top: 24, //3d饼图的位置
viewControl: {
//3d效果可以放大、旋转等,请自己去查看官方配置
alpha: 30, //角度
@@ -1049,11 +1051,13 @@ const ParkingOverview = connect(function mapStateToProps(state) {
{
key: "",
value: 0,
+ value_t: 0,
},
]
) => {
// 获取所有地区名称
- let data = datas.sort((a, b) => a.key - b.key);
+ let data = datas;
+ // .sort((a, b) => a.key - b.key);
setRightThree({
title: {
text: "",
@@ -1173,7 +1177,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
itemStyle: {
color: "rgba(13,225,250, 1)", // 设置曲线上的点的颜色为蓝色
},
- data: data.map((ele) => ele.value),
+ data: data.map((ele) => ele.value_t),
},
{
name: "实收",
@@ -1190,7 +1194,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
itemStyle: {
color: "rgba(235, 39, 39,1)", // 设置曲线上的点的颜色为蓝色
},
- data: data.map((ele) => ele.value + 100),
+ data: data.map((ele) => ele.value),
},
],
grid: {
@@ -1448,7 +1452,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
}
);
};
- //获取收费top5
+ //泊车公司-概览-周转率
const GetrateRank = (val) => {
ajax.ParkingOverview.GetrateRank({
dateType: val,
@@ -1470,6 +1474,29 @@ const ParkingOverview = connect(function mapStateToProps(state) {
}
);
};
+ //泊车公司-概览-路段收费率排行榜
+ const GetParkoverview = (val) => {
+ ajax.ParkingOverview.GetParkoverview({
+ dateType: val,
+ areaType: CarRoad[CarShow]?.type,
+ value: CarRoad[CarShow]?.value,
+ }).then(
+ (res) => {
+ if (parseInt(res?.status) === 20000) {
+ setDataTop(res?.data);
+ // getRevenueOption(res.data || []);
+ } else {
+ message.error(res?.message);
+ }
+ setLoading(true);
+ },
+ (err) => {
+ console.log(err);
+ setLoading(true);
+ }
+ );
+ };
+
//概览-营收分析类型占比
const GetincomeType = (val, item) => {
ajax.ParkingOverview.GetincomeType({
@@ -1516,7 +1543,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
}
);
};
- //概览-车场收入排行榜
+ //区大屏-路段周转次数排行榜
const GetParkparkIncomeRank = (val, item) => {
ajax.ParkingOverview.GetParkparkIncomeRank({
type: val,
@@ -1655,6 +1682,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
GetUseInfo(RoadSelect);
GetRevenueAnalysis(RoadSelect, "1");
if (CarRoad[CarShow]?.type == 2) {
+ setRoadturn(true);
GetrateRank("1");
GetincomeType(RoadSelect, "1");
GetOverviewData(RoadSelect);
@@ -1935,11 +1963,30 @@ const ParkingOverview = connect(function mapStateToProps(state) {
{CarRoad[CarShow]?.type == 2
- ? "收费员排行Top5"
+ ? "周转率收费率排行榜"
: "路段周转次数排行榜"}
{CarRoad[CarShow]?.type == 2 ? (
- ""
+
+ {
+ setRoadturn(true);
+ GetrateRank("1");
+ }}
+ >
+ 周转率
+
+ {
+ setRoadturn(false);
+ GetParkoverview("1");
+ }}
+ >
+ 收费率
+
+
) : (
{Dayfour.map((ele) => {
@@ -1978,7 +2025,7 @@ const ParkingOverview = connect(function mapStateToProps(state) {
{CarRoad[CarShow]?.type == 2
? ele.rate || 0
- : `${ele.paid_amount || 0}元`}
+ : `${ele.total || 0}次`}
@@ -2030,25 +2074,19 @@ const ParkingOverview = connect(function mapStateToProps(state) {
{/*

*/}
TOP2
-
- {Cartop[1]?.rate || 0}/{Cartop[1]?.rate || 0}
-
+
收费率{Cartop[1]?.rate || 0}
{Cartop[1]?.name || ""}
{/*

*/}
TOP1
-
- {Cartop[0]?.rate || 0}/{Cartop[0]?.rate || 0}
-
+
收费率{Cartop[0]?.rate || 0}
{Cartop[0]?.name || ""}
{/*

*/}
TOP3
-
- {Cartop[2]?.rate || 0}/{Cartop[2]?.rate || 0}
-
+
收费率{Cartop[2]?.rate || 0}
{Cartop[2]?.name || ""}
diff --git a/src/pages/FinancialMgm/SettleBill/GeneralBusiness/loadable.jsx b/src/pages/FinancialMgm/SettleBill/GeneralBusiness/loadable.jsx
index 78d9147..fbfcacd 100644
--- a/src/pages/FinancialMgm/SettleBill/GeneralBusiness/loadable.jsx
+++ b/src/pages/FinancialMgm/SettleBill/GeneralBusiness/loadable.jsx
@@ -90,6 +90,7 @@ function GeneralBusiness() {
{
title: "支付商户",
dataIndex: "tenantName",
+ width: 120,
key: "tenantName",
align: "center",
},
diff --git a/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx b/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx
index a717f74..0c451a1 100644
--- a/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx
+++ b/src/pages/InRoadMgm/EquipmentMgm/BarMgm/loadable.jsx
@@ -413,7 +413,7 @@ function Fence(props) {
imgno={false}
/>