diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 30a71570b..9d806f72e 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -267,6 +267,7 @@ "IPLoginLimit": "IP login limit", "Setting": "Setting", "Certificate": "Certificate", + "SecretKey": "Secret key", "Scope": "Type", "Builtin": "Builtin", "DateCreated": "Date created", @@ -1411,6 +1412,7 @@ "QingyunPrivatecloud": "Qingyun Private Cloud", "HuaweiPrivatecloud": "Huawei Private Cloud", "OpenStack": "OpenStack", + "CTYunPrivate": "CTYun Private Cloud", "GCP": "Google Cloud Platform", "FC": "Fusion Compute", "LAN": "LAN", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 7a414ecb4..7474887fe 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -272,6 +272,7 @@ "IPLoginLimit": "IPログイン制限", "Setting": "設定", "Certificate": "証明書", + "SecretKey": "鍵", "Scope": "カテゴリ", "Builtin": "内蔵", "DateCreated": "作成日", @@ -1454,6 +1455,7 @@ "QingyunPrivatecloud": "青雲プライベートクラウド", "HuaweiPrivatecloud": "ファーウェイプライベートクラウド", "OpenStack": "OpenStack", + "CTYunPrivate": "天翼プライベート・クラウド", "GCP": "Googleクラウド", "FC": "Fusion Compute", "LAN": "ローカルエリアネットワーク", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 08294106e..8497803d9 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -272,6 +272,7 @@ "IPLoginLimit": "IP 登录限制", "Setting": "设置", "Certificate": "证书", + "SecretKey": "密钥", "Scope": "类别", "Builtin": "内置", "DateCreated": "创建日期", @@ -1454,6 +1455,7 @@ "Qcloud": "腾讯云", "QingyunPrivatecloud": "青云私有云", "HuaweiPrivatecloud": "华为私有云", + "CTYunPrivate": "天翼私有云", "OpenStack": "OpenStack", "GCP": "谷歌云", "FC": "Fusion Compute", diff --git a/src/views/assets/Cloud/Account/AccountCreateUpdate.vue b/src/views/assets/Cloud/Account/AccountCreateUpdate.vue index 0bedc8a2e..cee280e27 100644 --- a/src/views/assets/Cloud/Account/AccountCreateUpdate.vue +++ b/src/views/assets/Cloud/Account/AccountCreateUpdate.vue @@ -22,7 +22,7 @@ export default { const accountProviderAttrs = ACCOUNT_PROVIDER_ATTRS_MAP[accountProvider] function setFieldAttrs() { const fieldsObject = {} - const updateNotRequiredFields = ['access_key_secret', 'client_secret', 'password', 'sc_password', 'oc_password'] + const updateNotRequiredFields = ['access_key_secret', 'client_secret', 'password', 'sc_password', 'oc_password', 'cert_file', 'key_file'] for (const item of accountProviderAttrs?.attrs) { fieldsObject[item] = { rules: updateNotRequiredFields.includes(item) && vm.$route.params.id ? [] : [Required] @@ -61,6 +61,20 @@ export default { toFormat: 'object' } }, + cert_file: { + label: this.$t('common.Certificate'), + component: UploadKey, + el: { + toFormat: 'object' + } + }, + key_file: { + label: this.$t('common.SecretKey'), + component: UploadKey, + el: { + toFormat: 'object' + } + }, password: { rules: this.$route.params.id ? [] : [Required] } diff --git a/src/views/assets/Cloud/Account/AccountList.vue b/src/views/assets/Cloud/Account/AccountList.vue index d2805e4d7..e4ca2eba4 100644 --- a/src/views/assets/Cloud/Account/AccountList.vue +++ b/src/views/assets/Cloud/Account/AccountList.vue @@ -4,7 +4,7 @@