feat
This commit is contained in:
@@ -144,9 +144,9 @@
|
||||
/>
|
||||
<span class="text-muted">默认最近 24 小时</span>
|
||||
</div>
|
||||
<a-spin :loading="historyLoading" style="width: 100%;">
|
||||
<a-spin :loading="historyLoading" style="width: 100%">
|
||||
<div class="hw-chart-wrap">
|
||||
<Chart v-if="historyChartOptions" :options="historyChartOptions" height="280px"/>
|
||||
<Chart v-if="historyChartOptions" :options="historyChartOptions" height="280px" width="100%" />
|
||||
<a-empty v-else description="暂无曲线数据" />
|
||||
</div>
|
||||
</a-spin>
|
||||
@@ -418,7 +418,7 @@ async function loadHistory() {
|
||||
return
|
||||
}
|
||||
const labels = points.map((p) => dayjs(p.collection_time).format('MM-DD HH:mm'))
|
||||
const vals = points.map((p) => p.metric_value)
|
||||
const vals = points.map((p) => p.metric_value / 100)
|
||||
historyChartOptions.value = {
|
||||
tooltip: { trigger: 'axis' },
|
||||
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
||||
|
||||
Reference in New Issue
Block a user