Commit d414526d authored by kewei.jia's avatar kewei.jia

修改cpu页面报错问题

parent 995e5e4f
...@@ -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: 'pipeline' icon: 'table'
}, },
children: [ children: [
{ {
......
...@@ -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.memoryResources = res.data this.cpuResources = res.data
} else { } else {
this.$notify({ this.$notify({
title: '警告', title: '警告',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment