Commit 0e1fa403 authored by baixian's avatar baixian

数据中心111

parent 4382338b
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="dist/main.js?1573194144046" charset="utf-8"></script> <script src="dist/main.js?1573439173100" charset="utf-8"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -292,6 +292,7 @@ export default { ...@@ -292,6 +292,7 @@ export default {
uv: 0, uv: 0,
}, },
today: moment(moment().unix() * 1000), today: moment(moment().unix() * 1000),
yesterday: moment(moment().unix() * 1000),
checkedDay: 0, checkedDay: 0,
customerList: [], customerList: [],
customerListParams: { customerListParams: {
......
...@@ -72,6 +72,11 @@ class DataCenterForm extends React.Component { ...@@ -72,6 +72,11 @@ class DataCenterForm extends React.Component {
} }
onRangePickerChange = (dates, dateStrings) => { onRangePickerChange = (dates, dateStrings) => {
const { dispatch } = this.props; const { dispatch } = this.props;
dispatch({
type: 'analyzecenter/pageInit',
payload: {
},
});
dispatch({ dispatch({
type: 'analyzecenter/updateState', type: 'analyzecenter/updateState',
payload: { payload: {
...@@ -127,6 +132,11 @@ class DataCenterForm extends React.Component { ...@@ -127,6 +132,11 @@ class DataCenterForm extends React.Component {
handleClickDay = (day) => { handleClickDay = (day) => {
const { dispatch } = this.props; const { dispatch } = this.props;
if (day === 7) { if (day === 7) {
dispatch({
type: 'analyzecenter/pageInit',
payload: {
},
});
dispatch({ dispatch({
type: 'analyzecenter/updateState', type: 'analyzecenter/updateState',
payload: { payload: {
...@@ -179,6 +189,11 @@ class DataCenterForm extends React.Component { ...@@ -179,6 +189,11 @@ class DataCenterForm extends React.Component {
}, },
}); });
} else { } else {
dispatch({
type: 'analyzecenter/pageInit',
payload: {
},
});
dispatch({ dispatch({
type: 'analyzecenter/updateState', type: 'analyzecenter/updateState',
payload: { payload: {
......
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