import React, { useState } from 'react' import PanelBox from '../../components/PanelBox'; import MiniSinglePie from './MiniSinglePie' import clsx from 'clsx'; import { Switch, FormControlLabel,InputLabel, Select, MenuItem,FormControl } from '@material-ui/core/index' import { styled } from '@material-ui/styles'; export default function GQ({ style }) { const v1 = 20; const v2 = 32; const r = (v1 * 100 / v2).toFixed(1); const v3 = 650; const v4 = 800; const r2 = (v3 * 100 / v4).toFixed(1); const [selected, setSelected] = useState(1) const CustomSwitch = styled(Switch)({ '& .MuiSwitch-switchBase': { color: '#fff', '&.Mui-checked': { color: '#1890ff', '& + .MuiSwitch-track': { backgroundColor: '#1890ff', opacity: 0.5, }, }, }, '& .MuiSwitch-track': { backgroundColor: 'rgba(255, 255, 255, 0.3)', }, }); const StyledFormControlLabel = styled(FormControlLabel)({ '& .MuiFormControlLabel-label': { color: '#fff' } }); const [dimension, setDimension] = useState('fqh'); const [checked, setChecked] = React.useState(false); return ( // setSelected(1)}>供蓄水 // setSelected(2)}>蓄水 // setSelected(3)}>警情 // // } extra={ } >
{/*
灌区
*/}
setChecked(e.target.checked)} /> } label="多灌区模式" /> {checked &&
}
) }