This commit is contained in:
jhnine 2022-07-19 17:16:30 +08:00
parent 81739d5573
commit af448704d3
2 changed files with 36 additions and 0 deletions

View File

@ -2,3 +2,4 @@ build/*.js
src/assets
public
dist
src/icons/iconfont.js

View File

@ -1,6 +1,40 @@
<template>
<div>
<div id="radarChart" ref="radarChart" />
<el-row v-if="clusterName === 'gpu-huawei'" :gutter="24">
<el-col :span="12">
<table class="info">
<div>GPU 利用率</div>
<tr>
<td rowspan="2">
<el-progress type="circle" color="#30C0B7" :percentage="15.43" :width="60" />
</td>
<td>1.234 Core</td>
<td>8 Core</td>
</tr>
<tr>
<td>已使用</td>
<td>总计</td>
</tr>
</table>
</el-col>
<el-col :span="12">
<table class="info">
<div>GPU内存利用率</div>
<tr>
<td rowspan="2">
<el-progress type="circle" color="#3182CE" :percentage="16.56" :width="60" />
</td>
<td>2.65 Gib</td>
<td>16 Gib</td>
</tr>
<tr>
<td>已使用</td>
<td>总计</td>
</tr>
</table>
</el-col>
</el-row>
<el-row :gutter="24">
<el-col :span="12">
<table class="info">
@ -91,6 +125,7 @@ export default {
clusterName() {
// console.log(this.$store.getters)
// return this.$store.getters.clusterName
console.log(localStorage.getItem('clusterName'))
return localStorage.getItem('clusterName')
}
},