From ccd7b319c82b207b26cfab089be4bcce399ce737 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Tue, 18 Jun 2024 17:57:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A1=E8=AE=A1=E5=8F=B0=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E7=9B=98=E4=BB=8A=E6=97=A5=E6=95=B0=E6=8D=AE=E6=9C=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/Audit/RightSummary.vue | 2 +- src/views/dashboard/Console/UserAssetActivity.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/dashboard/Audit/RightSummary.vue b/src/views/dashboard/Audit/RightSummary.vue index 8b1f48edb..e16ef5e99 100644 --- a/src/views/dashboard/Audit/RightSummary.vue +++ b/src/views/dashboard/Audit/RightSummary.vue @@ -100,7 +100,7 @@ export default { this.data.total_count_job_logs = data?.total_count_job_logs this.data.total_count_job_logs_running = data?.total_count_job_logs_running this.data.total_count_job_logs_failed = data?.total_count_job_logs_failed - if (totalCountSession.length > 1) { + if (totalCountSession.length > 0) { this.chartConfig.secondaryData = totalCountSession } } diff --git a/src/views/dashboard/Console/UserAssetActivity.vue b/src/views/dashboard/Console/UserAssetActivity.vue index c1662ca32..1f98e10f2 100644 --- a/src/views/dashboard/Console/UserAssetActivity.vue +++ b/src/views/dashboard/Console/UserAssetActivity.vue @@ -16,8 +16,7 @@ export default { Title, LineChart }, - props: { - }, + props: {}, data() { return { loading: false, @@ -48,10 +47,10 @@ export default { const activeUsers = data?.dates_metrics_total_count_active_users const activeAssets = data?.dates_metrics_total_count_active_assets this.lineChartConfig.datesMetrics = data.dates_metrics_date - if (activeUsers.length > 1) { + if (activeUsers.length > 0) { this.lineChartConfig.primaryData = activeUsers } - if (activeAssets.length > 1) { + if (activeAssets.length > 0) { this.lineChartConfig.secondaryData = activeAssets } } @@ -64,6 +63,7 @@ export default { margin-top: 16px; padding: 20px; background: #fff; + .head { display: flex; justify-content: space-between;