Skip to content

Commit

Permalink
增加 图表 标题 数值
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Oct 13, 2023
1 parent 4c3a3bf commit 7c6b9f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frontend/components/ResCountLineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { onBeforeUnmount, onMounted, ref } from 'vue'
const counterLines = ref<Map<string, Array<number>>>()
const workloadCounterLines = ref()
const wks = ['Pod', 'Deployment']
const wks = ['Pod', 'Deployment', 'Job', 'CronJob']
let timerId = 0
onMounted(async () => {
Expand All @@ -31,14 +31,14 @@ onBeforeUnmount(() => {
<NTabPane name="Workload" tab="Workload">
<NGrid :x-gap="20" :y-gap="20" :cols="4">
<NGridItem v-for="(v, k) in workloadCounterLines" :key="k">
<ChartLineView :items="v" :name="`${k}`" width="200px" height="200px" />
<ChartLineView :items="v" :name="`${k}:${v[0]}`" width="200px" height="200px" />
</NGridItem>
</NGrid>
</NTabPane>
<NTabPane name="全部" tab="ALL">
<NGrid :x-gap="20" :y-gap="20" :cols="4">
<NGridItem v-for="(v, k) in counterLines" :key="k">
<ChartLineView :items="v" :name="`${k}`" width="200px" height="200px" />
<ChartLineView :items="v" :name="`${k}:${v[0]}`" width="200px" height="200px" />
</NGridItem>
</NGrid>
</NTabPane>
Expand Down

0 comments on commit 7c6b9f9

Please sign in to comment.