diff --git a/src/components/AIcon/index.tsx b/src/components/AIcon/index.tsx
index 6e1682a0..17c9c963 100644
--- a/src/components/AIcon/index.tsx
+++ b/src/components/AIcon/index.tsx
@@ -60,6 +60,7 @@ const iconKeys = [
'RedoOutlined',
'VideoCameraOutlined',
'HistoryOutlined',
+ 'CalendarOutlined',
]
const Icon = (props: {type: string}) => {
diff --git a/src/views/link/DashBoard/components/Cpu.vue b/src/views/link/DashBoard/components/Cpu.vue
index 0dd9da8f..6f62f3e5 100644
--- a/src/views/link/DashBoard/components/Cpu.vue
+++ b/src/views/link/DashBoard/components/Cpu.vue
@@ -10,7 +10,9 @@
format="YYYY-MM-DD HH:mm:ss"
v-model="data.time"
>
-
+
-
+
+
@@ -50,8 +53,8 @@ import {
} from './tool.ts';
const chartRef = ref>({});
-
const loading = ref(false);
+const empty = ref(false);
const data = ref({
type: 'hour',
time: [null, null],
@@ -140,6 +143,7 @@ const handleCpuOptions = (optionsData, xAxis) => {
: typeDataLine,
};
myChart.setOption(options);
+ xAxis.length === 0 && (empty.value = true);
window.addEventListener('resize', function () {
myChart.resize();
});
@@ -186,4 +190,7 @@ watch(
margin-top: 8px;
}
}
+.empty {
+ height: 300px;
+}
diff --git a/src/views/link/DashBoard/components/Jvm.vue b/src/views/link/DashBoard/components/Jvm.vue
index f876e0ae..44671b76 100644
--- a/src/views/link/DashBoard/components/Jvm.vue
+++ b/src/views/link/DashBoard/components/Jvm.vue
@@ -10,7 +10,9 @@
format="YYYY-MM-DD HH:mm:ss"
v-model="data.time"
>
-
+
-
+
+
@@ -50,7 +53,7 @@ import {
} from './tool.ts';
const chartRef = ref>({});
-
+const empty = ref(false);
const loading = ref(false);
const data = ref({
type: 'hour',
@@ -144,6 +147,7 @@ const handleJVMOptions = (optionsData, xAxis) => {
: typeDataLine,
};
myChart.setOption(options);
+ xAxis.length === 0 && (empty.value = true);
window.addEventListener('resize', function () {
myChart.resize();
});
@@ -190,4 +194,7 @@ watch(
margin-top: 8px;
}
}
+.empty {
+ height: 300px;
+}
diff --git a/src/views/link/DashBoard/components/Network.vue b/src/views/link/DashBoard/components/Network.vue
index 2db01cc6..46188f4f 100644
--- a/src/views/link/DashBoard/components/Network.vue
+++ b/src/views/link/DashBoard/components/Network.vue
@@ -43,12 +43,12 @@
@@ -67,10 +67,8 @@ import moment from 'moment';
import * as echarts from 'echarts';
const chartRef = ref>({});
-
-const flag = ref(true);
+const empty = ref(false);
const loading = ref(false);
-const myChart = ref(null);
const data = ref({
type: 'bytesRead',
time: {
@@ -163,6 +161,7 @@ const handleNetworkOptions = (optionsData, xAxis) => {
: typeDataLine,
};
myChart.setOption(options);
+ // xAxis.length === 0 && (empty.value = true);
window.addEventListener('resize', function () {
myChart.resize();
});
@@ -216,4 +215,7 @@ watch(
display: flex;
align-items: center;
}
+.empty {
+ height: 300px;
+}