Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
77f223e0
Unverified
Commit
77f223e0
authored
May 16, 2019
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless state loading
parent
0bbbcc72
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/pages/Dashboard/Analysis.js
src/pages/Dashboard/Analysis.js
+2
-9
No files found.
src/pages/Dashboard/Analysis.js
View file @
77f223e0
...
@@ -18,7 +18,6 @@ const OfflineData = React.lazy(() => import('./OfflineData'));
...
@@ -18,7 +18,6 @@ const OfflineData = React.lazy(() => import('./OfflineData'));
}))
}))
class
Analysis
extends
Component
{
class
Analysis
extends
Component
{
state
=
{
state
=
{
loading
:
true
,
salesType
:
'
all
'
,
salesType
:
'
all
'
,
currentTabKey
:
''
,
currentTabKey
:
''
,
rangePickerValue
:
getTimeDistance
(
'
year
'
),
rangePickerValue
:
getTimeDistance
(
'
year
'
),
...
@@ -31,11 +30,6 @@ class Analysis extends Component {
...
@@ -31,11 +30,6 @@ class Analysis extends Component {
type
:
'
chart/fetch
'
,
type
:
'
chart/fetch
'
,
});
});
});
});
setTimeout
(()
=>
{
this
.
setState
({
loading
:
false
,
});
},
2000
);
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
...
@@ -96,9 +90,8 @@ class Analysis extends Component {
...
@@ -96,9 +90,8 @@ class Analysis extends Component {
};
};
render
()
{
render
()
{
const
{
rangePickerValue
,
salesType
,
currentTabKey
,
loading
:
stateLoading
}
=
this
.
state
;
const
{
rangePickerValue
,
salesType
,
currentTabKey
}
=
this
.
state
;
const
{
chart
,
loading
:
propsLoading
}
=
this
.
props
;
const
{
chart
,
loading
}
=
this
.
props
;
const
loading
=
stateLoading
||
propsLoading
;
const
{
const
{
visitData
,
visitData
,
visitData2
,
visitData2
,
...
...
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