mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +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 = data?.total_count_job_logs
|
||||||
this.data.total_count_job_logs_running = data?.total_count_job_logs_running
|
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
|
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
|
this.chartConfig.secondaryData = totalCountSession
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -16,8 +16,7 @@ export default {
|
|||||||
Title,
|
Title,
|
||||||
LineChart
|
LineChart
|
||||||
},
|
},
|
||||||
props: {
|
props: {},
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
@@ -48,10 +47,10 @@ export default {
|
|||||||
const activeUsers = data?.dates_metrics_total_count_active_users
|
const activeUsers = data?.dates_metrics_total_count_active_users
|
||||||
const activeAssets = data?.dates_metrics_total_count_active_assets
|
const activeAssets = data?.dates_metrics_total_count_active_assets
|
||||||
this.lineChartConfig.datesMetrics = data.dates_metrics_date
|
this.lineChartConfig.datesMetrics = data.dates_metrics_date
|
||||||
if (activeUsers.length > 1) {
|
if (activeUsers.length > 0) {
|
||||||
this.lineChartConfig.primaryData = activeUsers
|
this.lineChartConfig.primaryData = activeUsers
|
||||||
}
|
}
|
||||||
if (activeAssets.length > 1) {
|
if (activeAssets.length > 0) {
|
||||||
this.lineChartConfig.secondaryData = activeAssets
|
this.lineChartConfig.secondaryData = activeAssets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,6 +63,7 @@ export default {
|
|||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
Reference in New Issue
Block a user