Commit 6f2268c9 authored by 涂茜's avatar 涂茜

fix: bug

parent ac49be56
Pipeline #29720 failed with stages
in 20 seconds
......@@ -337,6 +337,7 @@ const HistoryInfo = (props) => {
const onChangeParams = (value = []) => {
const { dateRange, ignoreOutliers, zoom, unit } = value;
const requestArr = [];
console.log(dateRange, 'dateRange');
dateRange.forEach((item) => {
const param = {
...historyInfoParams,
......@@ -388,7 +389,7 @@ const HistoryInfo = (props) => {
}, [state, historyInfoParams]);
useEffect(() => {
dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: customerChecked });
customerChecked && dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: customerChecked });
}, [customerChecked]);
useEffect(() => {
......@@ -429,13 +430,18 @@ const HistoryInfo = (props) => {
};
const onCustomerRangeChange = (value) => {
console.log(value, 'value');
// customerChecked
setCustomerChecked(null);
setCustomerTime(value);
dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: value });
};
const onCustomerTimeChange = (key) => {
console.log(key, 'key');
setCustomerChecked(key);
dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: key });
!!customerTime && setCustomerTime(null);
// dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: key });
};
const onContrastPickerChange = (date, dateString, item) => {
......
......@@ -23,6 +23,7 @@
.ant-spin-container {
display: flex;
flex: 1;
overflow: hidden;
}
.ant-spin-nested-loading > div > .ant-spin {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment