Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qahome-diamond
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qahome-diamond
Commits
0f352cf0
Commit
0f352cf0
authored
Aug 13, 2019
by
kewei.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改cpu页面报错问题
parent
995e5e4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
index.js
src/router/index.js
+2
-2
cpuDetails.vue
src/views/resources/cpuDetails.vue
+2
-2
No files found.
src/router/index.js
View file @
0f352cf0
...
@@ -245,8 +245,8 @@ export const asyncRouterMap = [
...
@@ -245,8 +245,8 @@ export const asyncRouterMap = [
redirect
:
'
cpu
'
,
redirect
:
'
cpu
'
,
name
:
'
Resources
'
,
name
:
'
Resources
'
,
meta
:
{
meta
:
{
title
:
'
resources
'
,
title
:
'
资源使用率
'
,
icon
:
'
pipelin
e
'
icon
:
'
tabl
e
'
},
},
children
:
[
children
:
[
{
{
...
...
src/views/resources/cpuDetails.vue
View file @
0f352cf0
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"服务名"
prop=
"Action"
align=
"center"
>
<el-table-column
label=
"服务名"
prop=
"Action"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
>
{{
scope
.
row
.
name
}}
</span>
<span
>
{{
scope
.
row
.
_id
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"Cpu Used Limit"
prop=
"Microservice Name"
align=
"center"
>
<el-table-column
label=
"Cpu Used Limit"
prop=
"Microservice Name"
align=
"center"
>
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
}
}
getCpu
({
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
}).
then
((
res
)
=>
{
getCpu
({
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
}).
then
((
res
)
=>
{
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
memory
Resources
=
res
.
data
this
.
cpu
Resources
=
res
.
data
}
else
{
}
else
{
this
.
$notify
({
this
.
$notify
({
title
:
'
警告
'
,
title
:
'
警告
'
,
...
...
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