|
|
@@ -3,9 +3,10 @@ import { connect } from 'dva';
|
|
|
import { Row, Col, Icon, Card, Tabs, Table, Radio, DatePicker, Tooltip } from 'antd';
|
|
|
import numeral from 'numeral';
|
|
|
import {
|
|
|
- ChartCard, yuan, MiniArea, MiniBar, MiniProgress, Field, Bar, Pie, NumberInfo, TimelineChart,
|
|
|
+ ChartCard, yuan, MiniArea, MiniBar, MiniProgress, Field, Bar, Pie, TimelineChart,
|
|
|
} from '../../components/Charts';
|
|
|
import Trend from '../../components/Trend';
|
|
|
+import NumberInfo from '../../components/NumberInfo';
|
|
|
import { getTimeDistance } from '../../utils/utils';
|
|
|
|
|
|
import styles from './Analysis.less';
|
|
|
@@ -178,7 +179,8 @@ export default class Analysis extends Component {
|
|
|
<NumberInfo
|
|
|
title={data.name}
|
|
|
subTitle="转化率"
|
|
|
- total={<span style={{ top: '-6px', position: 'relative' }}>{data.cvr * 100}%</span>}
|
|
|
+ gap={2}
|
|
|
+ total={`${data.cvr * 100}%`}
|
|
|
theme={(currentKey !== data.name) && 'light'}
|
|
|
/>
|
|
|
</Col>
|
|
|
@@ -370,6 +372,7 @@ export default class Analysis extends Component {
|
|
|
</Tooltip>
|
|
|
</span>
|
|
|
}
|
|
|
+ gap={8}
|
|
|
total={numeral(12321).format('0,0')}
|
|
|
status="up"
|
|
|
subTotal={17.1}
|
|
|
@@ -386,6 +389,7 @@ export default class Analysis extends Component {
|
|
|
total={2.7}
|
|
|
status="down"
|
|
|
subTotal={26.2}
|
|
|
+ gap={8}
|
|
|
/>
|
|
|
<MiniArea
|
|
|
line
|