index.jsx 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import React from 'react'
  2. import { Row, Col } from 'antd';
  3. import Page from '@/components/Page';
  4. import Banner from './components/Banner';
  5. import EscalationCharts from './components/EscalationCharts';
  6. import AssignedCharts from './components/AssignedCharts';
  7. import ProblemCharts from './components/ProblemCharts';
  8. import SpotCharts from './components/SpotCharts';
  9. export default (props) => {
  10. const chartStyle = {
  11. height: '260px',
  12. width: '100%',
  13. }
  14. const chartStyle2 = {
  15. height: '200px',
  16. width: '100%',
  17. }
  18. return (
  19. <Page>
  20. <Banner />
  21. <Row gutter={24} style={{ marginTop: '24px' }}>
  22. <Col span={24}>
  23. <AssignedCharts style={chartStyle} />
  24. </Col>
  25. </Row>
  26. <Row gutter={24} style={{ marginTop: '24px' }}>
  27. <Col span={12}>
  28. <ProblemCharts style={chartStyle2} />
  29. </Col>
  30. <Col span={12}>
  31. <EscalationCharts style={chartStyle2} />
  32. </Col>
  33. </Row>
  34. <Row gutter={24} style={{ marginTop: '24px' }}>
  35. <Col span={24}>
  36. <SpotCharts style={chartStyle} />
  37. </Col>
  38. </Row>
  39. </Page>
  40. )
  41. }