|
|
@@ -36,12 +36,13 @@ export default class Monitor extends PureComponent {
|
|
|
return (
|
|
|
<div>
|
|
|
<Row gutter={24}>
|
|
|
- <Col lg={16} md={24} sm={24} xs={24} style={{ marginBottom: 24 }}>
|
|
|
+ <Col xl={18} lg={24} md={24} sm={24} xs={24} style={{ marginBottom: 24 }}>
|
|
|
<Card title="活动实时交易情况" bordered={false}>
|
|
|
<Row>
|
|
|
<Col sm={6} xs={12}>
|
|
|
<NumberInfo
|
|
|
subTitle="今日交易总额"
|
|
|
+ suffix="元"
|
|
|
total={numeral(124543233).format('0,0')}
|
|
|
/>
|
|
|
</Col>
|
|
|
@@ -60,16 +61,17 @@ export default class Monitor extends PureComponent {
|
|
|
<Col sm={6} xs={12}>
|
|
|
<NumberInfo
|
|
|
subTitle="每秒交易总额"
|
|
|
+ suffix="元"
|
|
|
total={numeral(234).format('0,0')}
|
|
|
/>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<div className={styles.mapChart}>
|
|
|
- <img src="https://gw.alipayobjects.com/zos/rmsportal/fBcAYoxWIjlUXwDjqvzg.png" alt="map" />
|
|
|
+ <img src="https://gw.alipayobjects.com/zos/rmsportal/LYbCPIWLeUrdWSpVvKIL.png" alt="map" />
|
|
|
</div>
|
|
|
</Card>
|
|
|
</Col>
|
|
|
- <Col lg={8} md={24} sm={24} xs={24}>
|
|
|
+ <Col xl={6} lg={24} md={24} sm={24} xs={24}>
|
|
|
<Card title="活动情况预测" style={{ marginBottom: 24 }} bordered={false}>
|
|
|
<ActiveChart />
|
|
|
</Card>
|
|
|
@@ -81,13 +83,13 @@ export default class Monitor extends PureComponent {
|
|
|
>
|
|
|
<Gauge
|
|
|
format={(val) => {
|
|
|
- switch (val) {
|
|
|
+ switch (parseInt(val, 10)) {
|
|
|
case 20:
|
|
|
return '差';
|
|
|
case 40:
|
|
|
return '中';
|
|
|
case 60:
|
|
|
- return '量';
|
|
|
+ return '良';
|
|
|
case 80:
|
|
|
return '优';
|
|
|
default:
|
|
|
@@ -95,14 +97,14 @@ export default class Monitor extends PureComponent {
|
|
|
}
|
|
|
}}
|
|
|
title="核销率"
|
|
|
- height={164}
|
|
|
+ height={180}
|
|
|
percent={87}
|
|
|
/>
|
|
|
</Card>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row gutter={24}>
|
|
|
- <Col sm={8} xs={24}>
|
|
|
+ <Col lg={12} sm={24} xs={24}>
|
|
|
<Card
|
|
|
title="各品类占比"
|
|
|
style={{ marginBottom: 24 }}
|
|
|
@@ -119,7 +121,7 @@ export default class Monitor extends PureComponent {
|
|
|
</Col>
|
|
|
<Col span={8}>
|
|
|
<Pie
|
|
|
- color="#5DD1DD"
|
|
|
+ color="#5DDECF"
|
|
|
percent={22}
|
|
|
subTitle="西餐"
|
|
|
total="22%"
|
|
|
@@ -128,7 +130,7 @@ export default class Monitor extends PureComponent {
|
|
|
</Col>
|
|
|
<Col span={8}>
|
|
|
<Pie
|
|
|
- color="#B5EDC9"
|
|
|
+ color="#2FC25B"
|
|
|
percent={32}
|
|
|
subTitle="火锅"
|
|
|
total="32%"
|
|
|
@@ -138,7 +140,7 @@ export default class Monitor extends PureComponent {
|
|
|
</Row>
|
|
|
</Card>
|
|
|
</Col>
|
|
|
- <Col sm={8} xs={24} style={{ marginBottom: 24 }}>
|
|
|
+ <Col lg={6} sm={12} xs={24} style={{ marginBottom: 24 }}>
|
|
|
<Card title="热门搜索" bordered={false}>
|
|
|
<TagCloud
|
|
|
data={tags}
|
|
|
@@ -146,7 +148,7 @@ export default class Monitor extends PureComponent {
|
|
|
/>
|
|
|
</Card>
|
|
|
</Col>
|
|
|
- <Col sm={8} xs={24} style={{ marginBottom: 24 }}>
|
|
|
+ <Col lg={6} sm={12} xs={24} style={{ marginBottom: 24 }}>
|
|
|
<Card title="资源剩余" bodyStyle={{ textAlign: 'center' }} bordered={false}>
|
|
|
<WaterWave
|
|
|
height={161}
|