diff --git a/src/views/dashboard/Pam/AccountSummary.vue b/src/views/dashboard/Pam/AccountSummary.vue
index c76cdf453..2205a8f83 100644
--- a/src/views/dashboard/Pam/AccountSummary.vue
+++ b/src/views/dashboard/Pam/AccountSummary.vue
@@ -26,9 +26,10 @@ export default {
tip: this.$t('RealTimeData')
},
counter: {
- total_count_online_sessions: '.',
- total_count_online_users: '.',
- total_count_today_failed_sessions: '.'
+ total_privileged_accounts: '',
+ total_ordinary_accounts: '',
+ total_unmanaged_accounts: '',
+ total_unavailable_accounts: ''
}
}
},
@@ -39,7 +40,7 @@ export default {
title: this.$t('特权账号'),
body: {
route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
- count: 4932,
+ count: this.counter.total_privileged_accounts,
disabled: !this.$hasPerm('terminal.view_session')
}
},
@@ -47,21 +48,20 @@ export default {
title: this.$t('普通账号'),
body: {
route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
- count: 2323,
- disabled: !this.$hasPerm('terminal.view_session')
+ count: this.counter.total_ordinary_accounts
}
},
{
title: this.$t('未托管账号'),
body: {
- count: 1233,
+ count: this.counter.total_unmanaged_accounts,
disabled: true
}
},
{
title: this.$t('不可用账号'),
body: {
- count: 123,
+ count: this.counter.total_unavailable_accounts,
disabled: true
}
}
@@ -74,12 +74,13 @@ export default {
methods: {
async getResourcesCount() {
return this.$axios.get(
- '/api/v1/index/',
+ '/api/v1/accounts/pam-dashboard/',
{
params: {
- total_count_online_sessions: 1,
- total_count_online_users: 1,
- total_count_today_failed_sessions: 1
+ total_privileged_accounts: 1,
+ total_ordinary_accounts: 1,
+ total_unmanaged_accounts: 1,
+ total_unavailable_accounts: 1
}
}
)
diff --git a/src/views/dashboard/Pam/DataSummary.vue b/src/views/dashboard/Pam/DataSummary.vue
index 4feb1e3bf..28f800592 100644
--- a/src/views/dashboard/Pam/DataSummary.vue
+++ b/src/views/dashboard/Pam/DataSummary.vue
@@ -2,7 +2,7 @@
-
+
@@ -10,41 +10,22 @@
diff --git a/src/views/dashboard/Pam/RiskSummary.vue b/src/views/dashboard/Pam/RiskSummary.vue
index 41eb917b9..7480e94c7 100644
--- a/src/views/dashboard/Pam/RiskSummary.vue
+++ b/src/views/dashboard/Pam/RiskSummary.vue
@@ -26,9 +26,9 @@ export default {
tip: this.$t('RealTimeData')
},
counter: {
- total_count_online_sessions: '.',
- total_count_online_users: '.',
- total_count_today_failed_sessions: '.'
+ total_long_time_no_login_accounts: '.',
+ total_weak_password_accounts: '.',
+ total_long_time_change_password_accounts: '.'
}
}
},
@@ -36,32 +36,23 @@ export default {
summaryItems() {
return [
{
- title: this.$t('幽灵账号'),
+ title: this.$t('长期未登录账号'),
body: {
route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
- count: 23,
- disabled: !this.$hasPerm('terminal.view_session')
- }
- },
- {
- title: this.$t('僵尸账号'),
- body: {
- route: { name: `SessionList`, params: { activeMenu: 'OnlineList' }},
- count: 293,
- disabled: !this.$hasPerm('terminal.view_session')
+ count: this.counter.total_long_time_no_login_accounts
}
},
{
title: this.$t('弱密码'),
body: {
- count: 203,
+ count: this.counter.total_weak_password_accounts,
disabled: true
}
},
{
title: this.$t('长时未改密'),
body: {
- count: 1010,
+ count: this.counter.total_long_time_change_password_accounts,
disabled: true
}
}
@@ -74,12 +65,16 @@ export default {
methods: {
async getResourcesCount() {
return this.$axios.get(
- '/api/v1/index/',
+ '/api/v1/accounts/pam-dashboard/',
{
params: {
- total_count_online_sessions: 1,
- total_count_online_users: 1,
- total_count_today_failed_sessions: 1
+ total_privileged_accounts: 1,
+ total_ordinary_accounts: 1,
+ total_unmanaged_accounts: 1,
+ total_unavailable_accounts: 1,
+ total_long_time_no_login_accounts: 1,
+ total_weak_password_accounts: 1,
+ total_long_time_change_password_accounts: 1
}
}
)
diff --git a/src/views/dashboard/Pam/SummaryChart.vue b/src/views/dashboard/Pam/SummaryChart.vue
index d3c6672f1..85e7a7bb9 100644
--- a/src/views/dashboard/Pam/SummaryChart.vue
+++ b/src/views/dashboard/Pam/SummaryChart.vue
@@ -9,7 +9,7 @@
- 1000
+ {{ config.total }}