From 4f6e4cbcf8fb191c39dfe5c8dbe507f1c2ec9850 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 15 Apr 2024 13:50:49 +0800 Subject: [PATCH] bugfix4.4 --- src/components/Common/GraphBase/index.jsx | 25 +------ .../SmokeHandle/SmokeTrendChart/index.jsx | 2 +- .../Common/TodayFaultType/index.jsx | 2 +- .../ElectricityCost/index.jsx | 2 - .../Modules/EnergyCostAnalysis/NO/index.jsx | 72 +----------------- .../Modules/EnergyCostAnalysis/NO2/index.jsx | 74 +------------------ .../Modules/EnergyCostAnalysis/O/index.jsx | 61 +-------------- .../Modules/EnergyCostAnalysis/SO2/index.jsx | 71 +----------------- src/pages/EnergyCostAnalysis/index.jsx | 9 --- 9 files changed, 12 insertions(+), 306 deletions(-) diff --git a/src/components/Common/GraphBase/index.jsx b/src/components/Common/GraphBase/index.jsx index 1e84828..9c180c4 100644 --- a/src/components/Common/GraphBase/index.jsx +++ b/src/components/Common/GraphBase/index.jsx @@ -2,14 +2,10 @@ import useIcon from "../../../hooks/useIcon"; import cls from "./index.module.css"; import { useMemo, useState } from "react"; -import { Switch, Select, Radio } from "antd"; +import { Switch, Select } from "antd"; import "./selector.style.overwrite.css"; -// import { Switch, Select, Space } from 'antd'; import triangle from "../../../assets/Icon/triangle.svg"; -const handleChange = (value: string) => { - console.log(`selected ${value}`); -}; function choseBg(size) { const [width, height] = size; return width === "long" && height === "middle" @@ -53,7 +49,6 @@ function GraphBase(props) { const [showChart, setShowChart] = useState(true); let dto = null; - let timerangeHint = null; const switchStyle = {}; if (props.switchPosition) { @@ -65,7 +60,6 @@ function GraphBase(props) { } if (dateOptions) { - console.log("dateoptions ", title, dateOptions); dto = (