diff --git a/src/components/AccountCreateUpdateForm/index.vue b/src/components/AccountCreateUpdateForm/index.vue index d569b9ca0..b4df80f87 100644 --- a/src/components/AccountCreateUpdateForm/index.vue +++ b/src/components/AccountCreateUpdateForm/index.vue @@ -63,7 +63,7 @@ export default { 'secret_type', 'secret', 'ssh_key', 'token', 'api_key', 'passphrase' ]], - [this.$t('common.Other'), ['push_now', 'is_active', 'comment']] + [this.$t('common.Other'), ['push_now', 'strategy', 'is_active', 'comment']] ], fieldsMeta: { assets: { @@ -77,6 +77,14 @@ export default { return this.platform || this.asset } }, + strategy: { + rules: [Required], + label: this.$t('ops.RunasPolicy'), + helpText: this.$t('accounts.BulkCreateStrategy'), + hidden: () => { + return this.platform || this.asset + } + }, name: { rules: [RequiredChange], on: { diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 21f73821d..d0b426e65 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1,6 +1,7 @@ { "": "", "accounts": { + "BulkCreateStrategy": "When creating accounts that do not meet the requirements, such as key type non-compliance and unique key constraints, the above policies can be selected.", "HistoryDate": "History date", "SameTypeAccountTip": "An account with the same user name and key type already exists", "HistoryPassword": "History password", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 7ca978f11..e6fb00bdf 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -1,6 +1,7 @@ { "": "", "accounts": { + "BulkCreateStrategy": "作成時に要件を満たしていないアカウント(例:鍵タイプが規則に合わない、一意のキー制約がある、上記のポリシーを選択することができます)について。", "HistoryDate": "历史日期", "SameTypeAccountTip": "同じユーザー名、鍵タイプのアカウントはすでに存在します", "HistoryPassword": "履歴パスワード", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 13f1410fd..bed73534a 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -1,6 +1,7 @@ { "": "", "accounts": { + "BulkCreateStrategy": "创建时对于不符合要求的账号,如:密钥类型不合规,唯一键约束,可选择以上策略。", "AccountTemplate": "账号模版", "HistoryDate": "日期", "SameTypeAccountTip": "相同用户名、密钥类型的账号已存在",