bugfix4.4
This commit is contained in:
@@ -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 = (
|
||||
<Select
|
||||
defaultValue={defaultSelect || dateOptions[0]}
|
||||
@@ -89,9 +83,6 @@ function GraphBase(props) {
|
||||
onChange={(value, option) => onDateChange(value)}
|
||||
/>
|
||||
);
|
||||
// <Radio.Button value={item} key={item} className="radio-group__item">
|
||||
// {item}
|
||||
// </Radio.Button>
|
||||
}
|
||||
|
||||
function handleSwitchChange(v) {
|
||||
@@ -137,19 +128,7 @@ function GraphBase(props) {
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
{
|
||||
dateOptions && dto
|
||||
// (
|
||||
// <Radio.Group
|
||||
// value={defaultSelect || dateOptions[0]}
|
||||
// buttonStyle="solid"
|
||||
// className={cls.graphBaseDate + " " + cls.radioGroup}
|
||||
// onChange={({ target }) => onDateChange(target.value)}
|
||||
// >
|
||||
// {dto}
|
||||
// </Radio.Group>
|
||||
// )
|
||||
}
|
||||
{dateOptions && dto}
|
||||
{props.children}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -76,7 +76,7 @@ const SmokeTrendChart = (props) => {
|
||||
);
|
||||
}
|
||||
function handleSourceChange(value) {
|
||||
setPeriod(
|
||||
setSource(
|
||||
{
|
||||
氧气: "O2_float",
|
||||
氮氧化物: "NOX_float",
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as echarts from "echarts";
|
||||
|
||||
function FaultType(props) {
|
||||
const [init, setInit] = useState(true);
|
||||
const [currentLine, setCurrentLine] = useState("");
|
||||
const [currentLine, setCurrentLine] = useState("Y61");
|
||||
const isra = useSelector((state) => state.isra);
|
||||
const currentStatistic = isra.dayStatistic || [];
|
||||
const currentLineStatistic =
|
||||
|
||||
Reference in New Issue
Block a user