From bfa80e10f553c1565cc138bd72a6da6eaa494870 Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Wed, 16 Apr 2025 14:52:45 +0800 Subject: [PATCH] add sysMem --- src/i18n/locales/en-US.ts | 2 + src/i18n/locales/zh-CN.ts | 2 + .../components/mfOverview/DashboardCards.vue | 83 ++++++++++++++----- 3 files changed, 65 insertions(+), 22 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index ee8870d7..f26556af 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -359,6 +359,8 @@ export default { onlineUser:'Online User', totalUser:'Total User', parallelUser:'Parallel User', + userTitle:'User Statistics', + sysTitle:'System Resources', skim: { users: "Users", userTitle:'User Information', diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 407caecb..e5fdaaa8 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -359,6 +359,8 @@ export default { onlineUser:'在线用户', totalUser:'总用户', parallelUser:'并行用户', + userTitle:'用户统计', + sysTitle:'系统资源', skim: { users: "用户数", userTitle:'用户信息', diff --git a/src/views/dashboard/overview/components/mfOverview/DashboardCards.vue b/src/views/dashboard/overview/components/mfOverview/DashboardCards.vue index a3689520..7934f92f 100644 --- a/src/views/dashboard/overview/components/mfOverview/DashboardCards.vue +++ b/src/views/dashboard/overview/components/mfOverview/DashboardCards.vue @@ -5,35 +5,38 @@ import useI18n from '@/hooks/useI18n'; const { t } = useI18n(); // 模拟数据 -const activeCallsData = ref([10, 20, 30, 40, 30, 20, 0]); +const activeCallsData = ref([10, 20, 30, 40, 30, 80, 100]); const mosData = ref([40, 50, 60, 70, 80, 30, 70]); const failedCallsData = ref([10, 10, 30, 20, 50, 40, 30]); // 新增三个卡片的模拟数据 -const networkCpuData = ref([30, 40, 50, 60, 45, 35, 55]); -const systemCpuData = ref([20, 30, 45, 55, 65, 50, 40]); +const networkCpuData = ref([30, 40, 50, 60, 45, 35, 40]); +const systemCpuData = ref([20, 30, 45, 55, 65, 50, 55]); const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); +const systemMemData = ref([20, 35, 40, 45, 30, 45, 65]); - {{ t('views.dashboard.overview.psapTitle')}} + {{ t('views.dashboard.overview.psapTitle') }} + + {{ t('views.dashboard.overview.userTitle') }} - {{ t('views.dashboard.overview.totalUser')}} + {{ t('views.dashboard.overview.totalUser') }} - 0 + 100 - -20 last 5m + +20 last 5s @@ -41,7 +44,7 @@ const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); - {{ t('views.dashboard.overview.onlineUser')}} + {{ t('views.dashboard.overview.onlineUser') }} @@ -51,7 +54,7 @@ const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); 70 - +40 last 5m + +40 last 5s @@ -61,7 +64,7 @@ const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); - {{ t('views.dashboard.overview.parallelUser')}} + {{ t('views.dashboard.overview.parallelUser') }} @@ -70,51 +73,75 @@ const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); 30 - -10 last 5m + -10 last 5s - + + + {{ t('views.dashboard.overview.sysTitle') }} + + + - {{t('views.dashboard.overview.resources.neCpu')}} + {{ t('views.dashboard.overview.resources.neCpu') }} - 55% + 40% - +20% last 5m + +5% last 5s - + - {{t('views.dashboard.overview.resources.sysCpu')}} + {{ t('views.dashboard.overview.resources.sysCpu') }} - 40% + 55% - -10% last 5m + +5% last 5s - + + - {{t('views.dashboard.overview.resources.sysDisk')}} + {{ t('views.dashboard.overview.resources.sysMem') }} + + + + + + + 65% + + + +20% last 5s + + + + + + + + {{ t('views.dashboard.overview.resources.sysDisk') }} @@ -124,17 +151,28 @@ const systemStorageData = ref([60, 65, 70, 75, 80, 85, 90]); 90% - +5% last 5m + +5% last 5s + +