From 14e2890f6585d9a677539c9245a953f7f35bfc56 Mon Sep 17 00:00:00 2001 From: xingjx Date: Thu, 23 Nov 2023 09:38:57 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E9=80=80=E6=AC=BE=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ParkingAlyOverview/loadable.jsx | 120 +++++++++++++-------- .../OrderInquiry/OrderChangeInquiry/index.jsx | 44 +++++++- .../OrderInquiry/ParkingOrderInquiry/index.jsx | 2 +- .../OrderInquiry/ReturnOrderInquiry/index.jsx | 84 +++++++++++---- .../OperationCenter/CarMgm/CarInfo/loadable.jsx | 2 +- .../OperationCenter/UserMgm/UserInfo/loadable.jsx | 2 +- 6 files changed, 183 insertions(+), 71 deletions(-) diff --git a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx index 30a7b90..8345925 100644 --- a/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx +++ b/src/pages/DataAnalysisPrediction/ParkingBusinessAly/ParkingAlyOverview/loadable.jsx @@ -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,25 +223,76 @@ function ParkingAlyOverview() { }, }, }, - color: ["#4DC3FF", "#FFD767"], - //series: seriesData, - series: - { - "name": "西区", - "type": "line", - "data": [ - 12, - 12, - 24 - ] - }, - grid: { - x: 50, - y: 55, - x2: 70, - y2: 20, - }, - }); + lineChartOption.series = + { + "name": "西区", + "type": "line", + "data": [ + 12, + 12, + 24 + ] + }, + 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() { diff --git a/src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx b/src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx index fd6cd45..d49db79 100644 --- a/src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx +++ b/src/pages/FinancialMgm/OrderInquiry/OrderChangeInquiry/index.jsx @@ -112,6 +112,7 @@ function EditOrderInquiry(props) { } setDefaultParams({ ...postData, ...pageInfo }); setTabLoading(true); + console.log(115,pageInfo,{ ...postData, ...pageInfo, ...v }) ajax.getOrderChangeList({ ...postData, ...pageInfo, ...v }).then( (res) => { if (parseInt(res?.status) === 20000) { @@ -503,7 +504,48 @@ function EditOrderInquiry(props) {