Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
ant-design-pro
Commits
298785bd
Unverified
Commit
298785bd
authored
Oct 30, 2017
by
niko
Committed by
GitHub
Oct 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:
https://github.com/ant-design/ant-design-pro/issues/40
(#44)
parent
ff0385ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
Monitor.js
src/routes/Dashboard/Monitor.js
+4
-10
Monitor.less
src/routes/Dashboard/Monitor.less
+1
-0
No files found.
src/routes/Dashboard/Monitor.js
View file @
298785bd
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
}
>
<
Tooltip
title
=
"等待后期实现"
>
<
img
src
=
"https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png"
alt
=
"map"
/>
<
img
src
=
"https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png"
alt
=
"map"
/>
<
/Tooltip
>
<
/div
>
<
/div
>
<
/Card
>
<
/Card
>
<
/Col
>
<
/Col
>
...
...
src/routes/Dashboard/Monitor.less
View file @
298785bd
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
height: 457px;
height: 457px;
img {
img {
width: 100%;
width: 100%;
max-height: 457px;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment