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) => { ...@@ -337,6 +337,7 @@ const HistoryInfo = (props) => {
const onChangeParams = (value = []) => { const onChangeParams = (value = []) => {
const { dateRange, ignoreOutliers, zoom, unit } = value; const { dateRange, ignoreOutliers, zoom, unit } = value;
const requestArr = []; const requestArr = [];
console.log(dateRange, 'dateRange');
dateRange.forEach((item) => { dateRange.forEach((item) => {
const param = { const param = {
...historyInfoParams, ...historyInfoParams,
...@@ -388,7 +389,7 @@ const HistoryInfo = (props) => { ...@@ -388,7 +389,7 @@ const HistoryInfo = (props) => {
}, [state, historyInfoParams]); }, [state, historyInfoParams]);
useEffect(() => { useEffect(() => {
dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: customerChecked }); customerChecked && dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: customerChecked });
}, [customerChecked]); }, [customerChecked]);
useEffect(() => { useEffect(() => {
...@@ -429,13 +430,18 @@ const HistoryInfo = (props) => { ...@@ -429,13 +430,18 @@ const HistoryInfo = (props) => {
}; };
const onCustomerRangeChange = (value) => { const onCustomerRangeChange = (value) => {
console.log(value, 'value');
// customerChecked
setCustomerChecked(null);
setCustomerTime(value); setCustomerTime(value);
dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: value }); dispatch({ type: UPDATE_TIME.UPDATE_TIME, payload: value });
}; };
const onCustomerTimeChange = (key) => { const onCustomerTimeChange = (key) => {
console.log(key, 'key');
setCustomerChecked(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) => { const onContrastPickerChange = (date, dateString, item) => {
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
.ant-spin-container { .ant-spin-container {
display: flex; display: flex;
flex: 1; flex: 1;
overflow: hidden;
} }
.ant-spin-nested-loading > div > .ant-spin { .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