mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 08:12:33 +00:00
fix: 审计台仪表盘今日数据有问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user