|
|
|
@ -27,7 +27,13 @@ class DatePickerCharts extends Component {
|
|
|
|
|
locale={locale}
|
|
|
|
|
allowClear={false}
|
|
|
|
|
value={[date_picker_store.start_date, date_picker_store.end_date]}
|
|
|
|
|
onChange={date_picker_store.onChange_dataPicker}
|
|
|
|
|
onChange={(e) => {
|
|
|
|
|
date_picker_store.onChange_dataPicker(e);
|
|
|
|
|
if (typeof this.props.onChange === 'function') {
|
|
|
|
|
this.props.onChange(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
ranges={{
|
|
|
|
|
本周: [moment().startOf("week"), moment().endOf("week")],
|
|
|
|
|
上周: [moment().startOf("week").subtract(7, "days"), moment().endOf("week").subtract(7, "days")],
|
|
|
|
|