import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { Row, Col, Card, Tooltip } from 'antd'; import { NumberInfo, Charts } from 'ant-design-pro'; import CountDown from 'ant-design-pro/lib/CountDown'; import numeral from 'numeral'; import ActiveChart from './components/ActiveChart'; import styles from './style.less'; const { Pie, WaterWave, Gauge, TagCloud } = Charts; const targetTime = new Date().getTime() + 3900000; @connect(({ BLOCK_NAME_CAMEL_CASE, loading }) => ({ BLOCK_NAME_CAMEL_CASE, loading: loading.models.monitor, })) class PAGE_NAME_UPPER_CAMEL_CASE extends PureComponent { componentDidMount() { const { dispatch } = this.props; dispatch({ type: 'BLOCK_NAME_CAMEL_CASE/fetchTags', }); } render() { const { BLOCK_NAME_CAMEL_CASE, loading } = this.props; const { tags } = BLOCK_NAME_CAMEL_CASE; return ( } bordered={false} > } suffix="元" total={numeral(124543233).format('0,0')} /> } total="92%" /> } total={} /> } suffix="元" total={numeral(234).format('0,0')} />
} > map
} style={{ marginBottom: 24 }} bordered={false} > } style={{ marginBottom: 24 }} bodyStyle={{ textAlign: 'center' }} bordered={false} >
} bordered={false} className={styles.pieCard} > } total="28%" height={128} lineWidth={2} /> } total="22%" height={128} lineWidth={2} /> } total="32%" height={128} lineWidth={2} /> } loading={loading} bordered={false} bodyStyle={{ overflow: 'hidden' }} > } bodyStyle={{ textAlign: 'center', fontSize: 0 }} bordered={false} > } percent={34} />
); } } export default PAGE_NAME_UPPER_CAMEL_CASE;