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