forked from github/dataease
Merge pull request #6844 from dataease/pr@dev-v2@perf_lic_tips
perf: 企业版license文案信息
This commit is contained in:
commit
a54a126b94
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user