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
73cc6d5b
Commit
73cc6d5b
authored
Jul 09, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超管-云资源管理页面
parent
8ca44d69
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+22
-1
No files found.
src/pages/workbench/fwgl/fwglList.vue
View file @
73cc6d5b
...
...
@@ -72,7 +72,10 @@
</div>
</div>
</div>
<div
class=
"admin_preview-right"
>
<div
class=
"admin_preview-right apass_buttons"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"approveWorkspace"
>
工作区域审批(1)
</el-button>
<chart
ref=
"adminHistogram"
:options=
"getHistogramOption()"
...
...
@@ -151,6 +154,7 @@ export default {
tempFliter
:
null
,
cloud_zuzhi
:
null
,
cloud_admin
:
null
,
cloud_admin_warn
:
false
,
}),
computed
:
{
...
mapState
({
...
...
@@ -1505,6 +1509,7 @@ export default {
}
else
{
if
(
percent
>=
80
)
{
colors
=
[
"
#e3606d
"
,
"
#f6d0d0
"
];
this
.
cloud_admin_warn
=
true
;
}
else
if
(
percent
>=
60
)
{
colors
=
[
"
#ef9535
"
,
"
#fcefd8
"
];
}
else
{
...
...
@@ -1989,6 +1994,13 @@ export default {
this
.
$refs
.
adminHistogram
.
resize
();
}
},
approveWorkspace
()
{
if
(
this
.
cloud_admin_warn
)
{
console
.
log
(
"
告警 ---
"
);
}
else
{
console
.
log
(
"
审批 ---
"
);
}
},
},
created
()
{
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
...
...
@@ -2103,4 +2115,13 @@ export default {
margin-top
:
15px
;
box-sizing
:
border-box
;
}
.apass_buttons
{
position
:
relative
;
}
.apass_buttons
>
.el-button
{
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
9
;
}
</
style
>
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