Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnyc-portrait
Overview
Overview
Details
Activity
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
hnyc-portrait
Commits
56fe9935
Commit
56fe9935
authored
Apr 24, 2020
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
雷达度选中维度高亮
parent
2223d144
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
Dashboard.jsx
src/view/Dashboard.jsx
+1
-1
Radar.recharts.jsx
src/view/Radar.recharts.jsx
+18
-1
mDashboard.jsx
src/view/mDashboard.jsx
+1
-1
No files found.
src/view/Dashboard.jsx
View file @
56fe9935
...
...
@@ -381,7 +381,7 @@ class Dashboard extends Component {
</
Row
>
<
Row
className=
"border-bottom border-light infoContentItem"
>
<
Col
md=
{
12
}
>
<
div
>
所属自律
互助小组
</
div
>
<
div
>
诚信
互助小组
</
div
>
<
div
className=
"text-primary"
>
{
data
.
custTOSDMAG
||
''
}
</
div
>
</
Col
>
<
Col
md=
{
12
}
>
...
...
src/view/Radar.recharts.jsx
View file @
56fe9935
...
...
@@ -3,9 +3,25 @@ import {
ResponsiveContainer
,
RadarChart
,
PolarGrid
,
PolarAngleAxis
,
PolarRadiusAxis
,
Radar
,
Tooltip
}
from
"recharts"
;
class
Basic
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
tickIndex
:
0
};
}
render
()
{
const
{
tickIndex
}
=
this
.
state
;
const
_data
=
this
.
props
.
data
;
const
Tick
=
(
props
)
=>
{
const
{
x
,
y
,
textAnchor
}
=
props
;
const
{
value
,
index
}
=
props
.
payload
;
return
<
text
x=
{
x
}
y=
{
y
}
textAnchor=
{
textAnchor
}
fill=
{
(
tickIndex
===
index
)?
'#4091b0'
:
'#000'
}
>
{
value
}
</
text
>;
};
var
gfdLevel
,
yjdLevel
,
phdLevel
,
czdLevel
,
cxdLevel
;
gfdLevel
=
(
parseFloat
(
_data
.
modelGFD
)
>=
1
)?
'A'
:
'B'
;
...
...
@@ -51,7 +67,8 @@ class Basic extends React.Component {
>
<
Tooltip
isAnimationActive=
{
false
}
/>
<
PolarGrid
/>
<
PolarAngleAxis
dataKey=
"item"
onClick=
{
e
=>
{
<
PolarAngleAxis
tick=
{
<
Tick
/>
}
dataKey=
"item"
onClick=
{
e
=>
{
this
.
setState
({
tickIndex
:
e
.
index
});
this
.
props
.
onSelect
&&
this
.
props
.
onSelect
(
e
.
index
)
}
}
/>
<
PolarRadiusAxis
...
...
src/view/mDashboard.jsx
View file @
56fe9935
...
...
@@ -391,7 +391,7 @@ class mDashboard extends Component {
</
Row
>
<
Row
className=
"border-bottom border-light infoContentItem"
>
<
Col
span=
{
12
}
>
<
div
>
所属自律
互助小组
</
div
>
<
div
>
诚信
互助小组
</
div
>
<
div
className=
"text-primary"
>
{
data
.
custTOSDMAG
||
''
}
</
div
>
</
Col
>
<
Col
span=
{
12
}
>
...
...
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