Unverified Commit 298785bd authored by niko's avatar niko Committed by GitHub
parent ff0385ab
import React, { PureComponent } from 'react'; import React, { PureComponent } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Row, Col, Card } from 'antd'; import { Row, Col, Card, Tooltip } from 'antd';
import numeral from 'numeral'; import numeral from 'numeral';
import { Pie, WaterWave, Gauge, TagCloud } from '../../components/Charts'; import { Pie, WaterWave, Gauge, TagCloud } from '../../components/Charts';
...@@ -10,14 +10,6 @@ import ActiveChart from '../../components/ActiveChart'; ...@@ -10,14 +10,6 @@ import ActiveChart from '../../components/ActiveChart';
import styles from './Monitor.less'; import styles from './Monitor.less';
const MapData = [];
for (let i = 0; i < 50; i += 1) {
MapData.push({
x: Math.floor(Math.random() * 600),
y: Math.floor(Math.random() * 400),
value: Math.floor(Math.random() * 1000) + 500,
});
}
const targetTime = new Date().getTime() + 3900000; const targetTime = new Date().getTime() + 3900000;
@connect(state => ({ @connect(state => ({
...@@ -68,7 +60,9 @@ export default class Monitor extends PureComponent { ...@@ -68,7 +60,9 @@ export default class Monitor extends PureComponent {
</Col> </Col>
</Row> </Row>
<div className={styles.mapChart}> <div className={styles.mapChart}>
<img src="https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png" alt="map" /> <Tooltip title="等待后期实现">
<img src="https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png" alt="map" />
</Tooltip>
</div> </div>
</Card> </Card>
</Col> </Col>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
height: 457px; height: 457px;
img { img {
width: 100%; width: 100%;
max-height: 457px;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment