🔨 修改 sql 脚本.

This commit is contained in:
lijiahangmax
2025-10-07 22:23:37 +08:00
parent 25082b9ea1
commit 55c2199c3f
5 changed files with 41 additions and 34 deletions

View File

@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Orion Visor</title>
</head>

View File

@@ -167,7 +167,9 @@ export function getMonitorHostOverride(agentKey: string) {
* 查询监控主机图表
*/
export function getMonitorHostChart(request: MonitorHostChartRequest) {
return axios.post<Array<TimeChartSeries>>('/monitor/monitor-host/chart', request);
return axios.post<Array<TimeChartSeries>>('/monitor/monitor-host/chart', request, {
timeout: 60000,
});
}
/**

View File

@@ -5,7 +5,7 @@
:loading="loading"
:bordered="false"
:header-style="{ height: '48px', padding: '8px 16px 0 16px', borderBottom: 'none' }"
:body-style="{ padding: '0 0 0 16px', height: 'calc(100% - 48px)', position: 'relative' }">
:body-style="{ padding: '0 0 0 16px', height: 'calc(100% - 48px)', position: 'relative', display: 'flex', alignItems: 'center', justifyContent: 'center' }">
<!-- 标题 -->
<template #title>
<div class="chart-title">
@@ -75,7 +75,7 @@
textStyle: {
color: 'rgba(0, 0, 0, 0.8)',
},
formatter: function(params: any) {
formatter: function (params: any) {
if (!params.length) {
return '';
}
@@ -235,7 +235,6 @@
}
.nodata-chart {
padding-top: 76px;
font-size: 16px;
display: flex;
align-items: center;