fix: 审计台仪表盘今日数据有问题

This commit is contained in:
wangruidong
2024-06-18 17:57:40 +08:00
committed by w940853815
parent 55637c7fa1
commit ccd7b319c8
2 changed files with 5 additions and 5 deletions

View File

@@ -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
}
}

View File

@@ -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;