...
|
...
|
@@ -4,8 +4,8 @@ import { formatMessage, FormattedMessage } from 'umi/locale'; |
4
|
4
|
import { Row, Col, Card, Tooltip } from 'antd';
|
5
|
5
|
import { NumberInfo, Charts } from 'ant-design-pro';
|
6
|
6
|
import CountDown from 'ant-design-pro/lib/CountDown';
|
7
|
|
-import ActiveChart from '@/components/ActiveChart';
|
8
|
7
|
import numeral from 'numeral';
|
|
8
|
+import ActiveChart from './components/ActiveChart';
|
9
|
9
|
|
10
|
10
|
import styles from './style.less';
|
11
|
11
|
|
...
|
...
|
@@ -13,21 +13,21 @@ const { Pie, WaterWave, Gauge, TagCloud } = Charts; |
13
|
13
|
|
14
|
14
|
const targetTime = new Date().getTime() + 3900000;
|
15
|
15
|
|
16
|
|
-@connect(({ monitor, loading }) => ({
|
17
|
|
- monitor,
|
|
16
|
+@connect(({ BLOCK_NAME, loading }) => ({
|
|
17
|
+ BLOCK_NAME,
|
18
|
18
|
loading: loading.models.monitor,
|
19
|
19
|
}))
|
20
|
|
-class Monitor extends PureComponent {
|
|
20
|
+class PAGE_NAME_UPPER_CAMEL_CASE extends PureComponent {
|
21
|
21
|
componentDidMount() {
|
22
|
22
|
const { dispatch } = this.props;
|
23
|
23
|
dispatch({
|
24
|
|
- type: 'monitor/fetchTags',
|
|
24
|
+ type: 'BLOCK_NAME/fetchTags',
|
25
|
25
|
});
|
26
|
26
|
}
|
27
|
27
|
|
28
|
28
|
render() {
|
29
|
|
- const { monitor, loading } = this.props;
|
30
|
|
- const { tags } = monitor;
|
|
29
|
+ const { BLOCK_NAME, loading } = this.props;
|
|
30
|
+ const { tags } = BLOCK_NAME;
|
31
|
31
|
|
32
|
32
|
return (
|
33
|
33
|
<React.Fragment>
|
...
|
...
|
@@ -232,4 +232,4 @@ class Monitor extends PureComponent { |
232
|
232
|
}
|
233
|
233
|
}
|
234
|
234
|
|
235
|
|
-export default Monitor; |
|
235
|
+export default PAGE_NAME_UPPER_CAMEL_CASE; |
...
|
...
|
|