diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index b7999f568..70d7f30c9 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -812,7 +812,16 @@ "Domain": "网域", "AdminUser": "管理用户", "SystemUser": "系统用户", - "Label": "标签" - + "Label": "标签", + "License": "许可证", + "NoLicense": "暂无许可证", + "SubscriptionID": "订阅授权ID", + "Corporation": "公司", + "Expired": "过期时间", + "AssetCount": "资产数量", + "Edition": "版本", + "LicenseDetail": "许可证详情", + "ImportLicense": "导入许可证", + "LicenseFile": "许可证文件" } } diff --git a/src/views/xpack/License.vue b/src/views/xpack/License.vue index 5ceeaf3e7..37f5e009c 100644 --- a/src/views/xpack/License.vue +++ b/src/views/xpack/License.vue @@ -1,10 +1,182 @@ diff --git a/src/views/xpack/api.js b/src/views/xpack/api.js index 25d386ca6..b07383122 100644 --- a/src/views/xpack/api.js +++ b/src/views/xpack/api.js @@ -23,3 +23,14 @@ export function restoreInterface() { method: 'get' }) } + +export function importLicense(formData) { + return request({ + url: '/api/v1/xpack/license/import', + method: 'post', + headers: { + 'Content-Type': 'multipart/form-data' + }, + data: formData + }) +}