index.jsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import React, { PureComponent } from "react";
  2. import { connect } from "dva";
  3. import { RightPage } from "./style";
  4. import ChartBox from "../ChartBox";
  5. import WaterPlantMonitoring from "../Overview/WaterPlantMonitoring";
  6. import WaterVolumeStat from "../Overview/WaterVolumeStat";
  7. import PipelineMonitoring from "../Overview/PipelineMonitoring";
  8. class index extends PureComponent {
  9. constructor(props) {
  10. super(props);
  11. this.state = {};
  12. }
  13. render() {
  14. return (
  15. <RightPage>
  16. <ChartBox title="当年水量统计" style={{ flex: 1}}>
  17. <WaterVolumeStat />
  18. </ChartBox>
  19. <ChartBox title="当月管网监测" style={{ flex: 1, marginTop: 30, marginBottom: 30 }}>
  20. <PipelineMonitoring />
  21. </ChartBox>
  22. <WaterPlantMonitoring height="30vh" />
  23. </RightPage>
  24. );
  25. }
  26. }
  27. const mapStateToProps = (state) => {
  28. return {
  29. browseCategories: state.rightPage.browseCategories,
  30. userIdentityCategory: state.rightPage.userIdentityCategory,
  31. offline: state.rightPage.offline,
  32. };
  33. };
  34. const mapStateToDispatch = (dispatch) => ({});
  35. export default connect(mapStateToProps, mapStateToDispatch)(index);