Commit 0e1fa403 authored by baixian's avatar baixian

数据中心111

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