Merge pull request #6844 from dataease/pr@dev-v2@perf_lic_tips

perf: 企业版license文案信息
This commit is contained in:
fit2cloud-chenyw 2023-11-24 18:05:59 +08:00 committed by GitHub
commit a54a126b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,7 @@ const license: F2CLicense = reactive({
remark: '',
isv: ''
})
const tipsSuffix = ref('')
const build = ref('')
const isAdmin = ref(false)
const fileList = reactive([])
@ -88,6 +89,9 @@ const validateHandler = (param, success) => {
validateApi(param).then(success)
}
const getLicense = result => {
if (result.status === 'valid') {
tipsSuffix.value = result.edition === 'Embedded' ? '套' : '个账号'
}
return {
status: result.status,
corporation: result.license ? result.license.corporation : '',
@ -145,7 +149,9 @@ const update = (licKey: string) => {
</div>
<div class="item">
<div class="label">{{ $t('about.auth_num') }}</div>
<div class="value">{{ `${license.count}` }}</div>
<div class="value">
{{ license.status === 'valid' ? `${license.count} ${tipsSuffix}` : '' }}
</div>
</div>
<div class="item">
<div class="label">{{ $t('about.version') }}</div>