forked from ddrilling/asb_cloud_front
component rename
This commit is contained in:
parent
fa45a27a4c
commit
f221ae5290
@ -22,14 +22,13 @@ const { RangePicker } = DatePicker;
|
|||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
|
|
||||||
// Выбор периода времени
|
// Выбор периода времени
|
||||||
const PeriodOfTime = () => {
|
const RangePickerLocalized = ({locale, ...other}) => {
|
||||||
// const [startDate, setStartDate] = useState(new Date());
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigProvider locale={locale}>
|
<ConfigProvider locale={locale}>
|
||||||
<RangePicker
|
<RangePicker
|
||||||
showTime
|
showTime
|
||||||
style={{ margin: '5px 5px', }}
|
style={{ margin: '5px 5px', }}
|
||||||
|
{...other}
|
||||||
/>
|
/>
|
||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
)
|
)
|
||||||
@ -71,7 +70,9 @@ const SelectDataCharts = () => {
|
|||||||
{ label: "Расход. Холостой ход", xAccessorName: "flowIdle", color: '#a0a' },
|
{ label: "Расход. Холостой ход", xAccessorName: "flowIdle", color: '#a0a' },
|
||||||
{ label: "Расход. Аварийный макс.", xAccessorName: "flowDeltaLimitMax", color: '#a0a' },
|
{ label: "Расход. Аварийный макс.", xAccessorName: "flowDeltaLimitMax", color: '#a0a' },
|
||||||
]
|
]
|
||||||
|
|
||||||
const children = linesCollection.map((line) => (<Option key={line.xAccessorName}>{line.label}</Option>))
|
const children = linesCollection.map((line) => (<Option key={line.xAccessorName}>{line.label}</Option>))
|
||||||
|
|
||||||
function handleChange(value) {
|
function handleChange(value) {
|
||||||
console.log(`selected ${value}`);
|
console.log(`selected ${value}`);
|
||||||
}
|
}
|
||||||
@ -159,7 +160,7 @@ export default function Archive(props) {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
margin: '5px 5px',
|
margin: '5px 5px',
|
||||||
}}>Добавить график</Button>
|
}}>Добавить график</Button>
|
||||||
<PeriodOfTime />
|
<RangePickerLocalized />
|
||||||
<SelectDataCharts />
|
<SelectDataCharts />
|
||||||
<Row style={{ marginBottom: '1rem' }}>
|
<Row style={{ marginBottom: '1rem' }}>
|
||||||
<Col>
|
<Col>
|
||||||
|
Loading…
Reference in New Issue
Block a user