Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
8ca44d69
Commit
8ca44d69
authored
Jul 09, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超管-云资源管理主页仪表图颜色规则调整
parent
57d4562f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+15
-3
No files found.
src/pages/workbench/fwgl/fwglList.vue
View file @
8ca44d69
...
...
@@ -1494,10 +1494,22 @@ export default {
},
getDashboardOption
(
item
)
{
let
percent
=
Math
.
round
((
item
.
value
/
item
.
total
)
*
100
)
||
0
;
let
colors
=
[
"
#515fe7
"
,
"
#e7ecfd
"
];
let
colors
=
[];
if
(
percent
>=
80
)
{
colors
=
[
"
#e3606d
"
,
"
#f6d0d0
"
];
if
(
this
.
level
==
2
)
{
if
(
percent
>=
80
)
{
colors
=
[
"
#e3606d
"
,
"
#f6d0d0
"
];
}
else
{
colors
=
[
"
#515fe7
"
,
"
#e7ecfd
"
];
}
}
else
{
if
(
percent
>=
80
)
{
colors
=
[
"
#e3606d
"
,
"
#f6d0d0
"
];
}
else
if
(
percent
>=
60
)
{
colors
=
[
"
#ef9535
"
,
"
#fcefd8
"
];
}
else
{
colors
=
[
"
#515fe7
"
,
"
#e7ecfd
"
];
}
}
return
{
...
...
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