diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index acb090810..365e25b38 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -95,6 +95,8 @@ "assets": { "SelectTemplate": "Select template", "InAssetDetail": "Update account information in asset details", + "SecretType": "Secret type", + "PrivilegedTemplate": "Privileged", "All": "All", "CloudPlatform": "Cloud platform", "RecentlyUsed": "Recently used", @@ -716,6 +718,9 @@ "SessionDetail": "SessionDetail", "Accounts": "Accounts", "AssetAccount": "Asset Account", + "AccountTemplate": "Account template", + "CreateAccountTemplate": "Create account template", + "UpdateAccountTemplate": "Update account template", "AssetHistoryAccount": "Asset History Account", "ApplicationAccount": "Application Account", "Ticket": "Tickets", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 2e2e08223..4e51d27b1 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -100,6 +100,8 @@ "assets": { "SelectTemplate": "テンプレートの選択", "InAssetDetail": "資産詳細でのアカウント情報の更新", + "SecretType": "機密タイプ", + "PrivilegedTemplate": "特権的", "All": "すべて", "CloudPlatform": "クラウドプラットフォーム", "RecentlyUsed": "最近使われる", @@ -724,6 +726,9 @@ "TicketFlowUpdate": "承認フローの更新", "Accounts": "アカウント管理", "AssetAccount": "資産アカウント", + "AccountTemplate": "アカウントテンプレート", + "CreateAccountTemplate": "アカウントテンプレートの作成", + "UpdateAccountTemplate": "アカウントテンプレートの更新", "AssetHistoryAccount": "資産履歴", "ApplicationAccount": "アプリアカウント", "Ticket": "ワークオーダー", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 58447e15f..1a71342a4 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -100,6 +100,8 @@ "assets": { "SelectTemplate": "选择模版", "InAssetDetail": "在资产详情中更新账号信息", + "SecretType": "密文类型", + "PrivilegedTemplate": "特权的", "Address": "地址", "PrivateKey": "密钥", "Secret": "密码", @@ -737,6 +739,9 @@ "TicketFlowUpdate": "更新审批流", "Accounts": "账号管理", "AssetAccount": "资产账号", + "AccountTemplate": "账号模版", + "CreateAccountTemplate": "创建账号模版", + "UpdateAccountTemplate": "更新账号模版", "AssetHistoryAccount": "资产历史账号", "ApplicationAccount": "应用账号", "Ticket": "工单", diff --git a/src/router/console/accounts.js b/src/router/console/accounts.js index a2eeab4d0..7d5c72f5e 100644 --- a/src/router/console/accounts.js +++ b/src/router/console/accounts.js @@ -34,6 +34,54 @@ export default [ } ] }, + { + path: 'account-template', + component: empty, + meta: { + title: i18n.t('route.AccountTemplate'), + app: 'assets', + permissions: ['assets.view_accounttemplate'] + }, + redirect: '', + children: [ + { + path: '', + name: 'AccountTemplateList', + component: () => import('@/views/accounts/AccountTemplate/AccountTemplateList'), + meta: { + title: i18n.t('route.AccountTemplate'), + permissions: ['assets.view_accounttemplate'] + } + }, + { + path: 'create', + component: () => import('@/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue'), + name: 'AccountTemplateCreate', + meta: { + title: i18n.t('route.CreateAccountTemplate'), + action: 'create' + }, + hidden: true + }, + { + path: ':id/update', + component: () => import('@/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue'), + name: 'AccountTemplateUpdate', + meta: { + title: i18n.t('route.UpdateAccountTemplate'), + action: 'update' + }, + hidden: true + }, + { + path: ':id', + component: () => import('@/views/accounts/AccountTemplate/AccountTemplateDetail/index.vue'), + name: 'AccountTemplateDetail', + meta: { title: i18n.t('route.AccountTemplate') }, + hidden: true + } + ] + }, { path: 'gathered-user', component: empty, diff --git a/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue b/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue new file mode 100644 index 000000000..483a6d260 --- /dev/null +++ b/src/views/accounts/AccountTemplate/AccountTemplateCreateUpdate.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/views/accounts/AccountTemplate/AccountTemplateDetail/Detail.vue b/src/views/accounts/AccountTemplate/AccountTemplateDetail/Detail.vue new file mode 100644 index 000000000..7ecb95e0c --- /dev/null +++ b/src/views/accounts/AccountTemplate/AccountTemplateDetail/Detail.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/views/accounts/AccountTemplate/AccountTemplateDetail/index.vue b/src/views/accounts/AccountTemplate/AccountTemplateDetail/index.vue new file mode 100644 index 000000000..034698181 --- /dev/null +++ b/src/views/accounts/AccountTemplate/AccountTemplateDetail/index.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/views/accounts/AccountTemplate/AccountTemplateList.vue b/src/views/accounts/AccountTemplate/AccountTemplateList.vue new file mode 100644 index 000000000..0e43de0e7 --- /dev/null +++ b/src/views/accounts/AccountTemplate/AccountTemplateList.vue @@ -0,0 +1,45 @@ + + + + +