diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 108ff6112..ba5ac6414 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -438,10 +438,12 @@ "ReLoginErr": "Login time has exceeded 5 minutes, please login again" }, "common": { - "DownloadCenter": "Download center", - "RestoreDefault": "Restore default", - "ImportOrg": "Import organization", + "CommunityEdition": "Community Edition", + "EnterpriseEdition": "Enterprise Edition", + "Product": "Product", "About": "About", + "DownloadCenter": "Download center", + "ImportOrg": "Import organization", "PermissionCompany": "Permission company", "ApproverNumbers": "Approver numbers", "ConvenientOperate": "Convenient operate", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 237a31726..aaa7921bc 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -434,6 +434,9 @@ "ReLoginErr": "登录时长已超过 5 分钟,请重新登录" }, "common": { + "CommunityEdition": "社区版", + "EnterpriseEdition": "企业版", + "Product": "产品", "RestoreDefault": "恢复默认", "DownloadCenter": "下载中心", "ImportOrg": "导入组织", diff --git a/src/layout/components/NavHeader/About.vue b/src/layout/components/NavHeader/About.vue index 7d5191028..0041520a0 100644 --- a/src/layout/components/NavHeader/About.vue +++ b/src/layout/components/NavHeader/About.vue @@ -3,7 +3,7 @@ v-if="iVisible" :show-cancel="false" :show-confirm="false" - :title="''" + :title="$tc('common.About')" :visible.sync="iVisible" class="about-dialog" top="10%" @@ -11,10 +11,12 @@ >
- logo + logo
-
{{ $tc('ops.version') }}: version-dev GPLv3.
-
{{ $tc('common.PermissionCompany') }}:{{ corporation }}
+ + {{ item.label }}: + {{ item.value }} +
@@ -42,7 +44,6 @@ export default { }, data() { return { - logoTextSrc: require('@/assets/img/logo_text_green.png'), actions: [ { name: 'github', @@ -69,8 +70,46 @@ export default { return this.visible } }, + versionType() { + return this.hasXPack ? this.$t('common.EnterpriseEdition') : this.$tc('common.CommunityEdition') + ' GPLv3' + }, + items() { + return [ + { + label: this.$t('common.Product'), + value: 'JumpServer ' + this.versionType + }, + { + label: this.$t('common.Version'), + value: 'version-dev' + }, + { + label: this.$t('common.PermissionCompany'), + value: this.corporation, + has: this.hasXPack + }, + { + label: 'Copyright', + value: this.copyright, + has: !this.hasXPack + } + ] + }, corporation() { return this.publicSettings.XPACK_LICENSE_INFO.corporation + }, + copyright() { + if (this.corporation.indexOf('FIT2CLOUD 飞致云') > -1) { + return this.corporation + } else { + return '' + } + }, + logoSrc() { + return this.publicSettings['INTERFACE']['logo_logout'] + }, + hasXPack() { + return this.publicSettings.XPACK_LICENSE_IS_VALID } }, methods: { @@ -90,29 +129,33 @@ export default {