From 70777f83352f2572b9919838ef8720953ac36af6 Mon Sep 17 00:00:00 2001
From: wangruidong <940853815@qq.com>
Date: Thu, 12 Dec 2024 15:56:04 +0800
Subject: [PATCH] perf: Add AccountDetail page
---
src/router/pam/automations.js | 10 ++++
.../AccountDiscover/AccountDetail/index.vue | 55 +++++++++++++++++++
.../AccountDiscover/AccountDetail/info.vue | 39 +++++++++++++
.../AccountDiscover/AccountDetail/more.vue | 34 ++++++++++++
src/views/accounts/const.js | 8 ++-
5 files changed, 145 insertions(+), 1 deletion(-)
create mode 100644 src/views/accounts/AccountDiscover/AccountDetail/index.vue
create mode 100644 src/views/accounts/AccountDiscover/AccountDetail/info.vue
create mode 100644 src/views/accounts/AccountDiscover/AccountDetail/more.vue
diff --git a/src/router/pam/automations.js b/src/router/pam/automations.js
index c1bd0661b..d23b976f9 100644
--- a/src/router/pam/automations.js
+++ b/src/router/pam/automations.js
@@ -81,6 +81,16 @@ export default [
// activeMenu: '/console/accounts/automations',
permissions: ['accounts.view_gatheraccountsexecution']
}
+ },
+ {
+ path: 'account/:id',
+ component: () => import('@/views/accounts/AccountDiscover/AccountDetail/index.vue'),
+ name: 'AccountDiscoverAccountDetail',
+ hidden: true,
+ meta: {
+ title: i18n.t('AccountDiscoverAccountDetail'),
+ permissions: ['accounts.view_gatheraccountsexecution']
+ }
}
]
},
diff --git a/src/views/accounts/AccountDiscover/AccountDetail/index.vue b/src/views/accounts/AccountDiscover/AccountDetail/index.vue
new file mode 100644
index 000000000..29d974ced
--- /dev/null
+++ b/src/views/accounts/AccountDiscover/AccountDetail/index.vue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounts/AccountDiscover/AccountDetail/info.vue b/src/views/accounts/AccountDiscover/AccountDetail/info.vue
new file mode 100644
index 000000000..fcc141bcc
--- /dev/null
+++ b/src/views/accounts/AccountDiscover/AccountDetail/info.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounts/AccountDiscover/AccountDetail/more.vue b/src/views/accounts/AccountDiscover/AccountDetail/more.vue
new file mode 100644
index 000000000..29599ac6d
--- /dev/null
+++ b/src/views/accounts/AccountDiscover/AccountDetail/more.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/accounts/const.js b/src/views/accounts/const.js
index 0da965e47..85040ff68 100644
--- a/src/views/accounts/const.js
+++ b/src/views/accounts/const.js
@@ -36,7 +36,13 @@ export const gatherAccountTableConfig = (vm, url) => {
}
},
username: {
- showOverflowTooltip: true
+ formatter: function(row) {
+ const to = {
+ name: 'AccountDiscoverAccountDetail',
+ params: { id: row.id }
+ }
+ return h('router-link', { props: { to }}, row.username)
+ }
},
present: {
width: '120px'