Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
6f2268c9
Commit
6f2268c9
authored
Jun 11, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug
parent
ac49be56
Pipeline
#29720
failed with stages
in 20 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
index.js
packages/extend-components/EC_HistoryInfo/src/index.js
+8
-2
index.less
packages/extend-components/EC_HistoryInfo/src/index.less
+1
-0
No files found.
packages/extend-components/EC_HistoryInfo/src/index.js
View file @
6f2268c9
...
...
@@ -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
)
=>
{
...
...
packages/extend-components/EC_HistoryInfo/src/index.less
View file @
6f2268c9
...
...
@@ -23,6 +23,7 @@
.ant-spin-container {
display: flex;
flex: 1;
overflow: hidden;
}
.ant-spin-nested-loading > div > .ant-spin {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment