From a89409e6408d33bd29935d6adcb2fb7ff0d2a47c Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Sat, 26 Jul 2025 15:01:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E7=BD=91=E5=85=83?= =?UTF-8?q?=E5=88=86=E7=BB=84=E5=A1=AB=E6=BF=80=E6=B4=BB=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-antd/src/api/license/license/index.ts | 8 +- .../src/locales/langs/en-US/license.json | 6 +- .../src/locales/langs/zh-CN/license.json | 6 +- .../license/license/components/detail.vue | 122 +++++++++++++ .../license/license/components/ne-code.vue | 155 ++++++++++++++++ .../src/views/license/license/data.ts | 171 ++++++++++-------- .../views/license/license/generate/index.vue | 19 +- .../src/views/license/license/index.vue | 17 +- .../views/license/license/modules/detail.vue | 51 ++++++ .../views/license/license/modules/form.vue | 30 ++- 10 files changed, 487 insertions(+), 98 deletions(-) create mode 100644 apps/web-antd/src/views/license/license/components/detail.vue create mode 100644 apps/web-antd/src/views/license/license/components/ne-code.vue create mode 100644 apps/web-antd/src/views/license/license/modules/detail.vue diff --git a/apps/web-antd/src/api/license/license/index.ts b/apps/web-antd/src/api/license/license/index.ts index 806f4fa..03af844 100644 --- a/apps/web-antd/src/api/license/license/index.ts +++ b/apps/web-antd/src/api/license/license/index.ts @@ -12,7 +12,7 @@ export namespace LicenseApi { projectId?: number; // 项目ID serialNo?: string; // sn expiryDate: Dayjs | string; // 到期时间 - neList: number[]; // 网元开关 + neList: number[]; // 网元 userNumber: number; // 用户数 ranNumber: number; // 基站数 activationCode: string; // 激活码 @@ -24,6 +24,12 @@ export namespace LicenseApi { status: number; // 状态 remark: string; // 备注 action: number; // 操作 + neCodeList: NeCode[]; // 操作 + } + export interface NeCode { + id: number; // 主键 + neList: number[]; // 网元开关 + activationCode: string; // 激活码 } } diff --git a/apps/web-antd/src/locales/langs/en-US/license.json b/apps/web-antd/src/locales/langs/en-US/license.json index e4cb681..d2273e0 100644 --- a/apps/web-antd/src/locales/langs/en-US/license.json +++ b/apps/web-antd/src/locales/langs/en-US/license.json @@ -26,5 +26,9 @@ "download": "Download", "downloadFailed": "Download failed, please try again later", "licenseFile": "License File", - "applySuccess": "Application successful, email reminder sent, please wait for approval" + "applySuccess": "Application successful, email reminder sent, please wait for approval", + "addNe": "Add Network Elements", + "enterCode": "Please enter Activation Code", + "selectNe": "Please select Network Element", + "detail": "detail" } diff --git a/apps/web-antd/src/locales/langs/zh-CN/license.json b/apps/web-antd/src/locales/langs/zh-CN/license.json index 9b83d41..43e4a81 100644 --- a/apps/web-antd/src/locales/langs/zh-CN/license.json +++ b/apps/web-antd/src/locales/langs/zh-CN/license.json @@ -26,5 +26,9 @@ "download": "下载", "downloadFailed": "下载失败,请稍后重试", "licenseFile": "License文件", - "applySuccess": "申请成功,已发送邮件提醒,请等待审核" + "applySuccess": "申请成功,已发送邮件提醒,请等待审核", + "addNe": "添加网元", + "enterCode": "请输入激活码", + "selectNe": "请选择网元", + "detail": "详情" } diff --git a/apps/web-antd/src/views/license/license/components/detail.vue b/apps/web-antd/src/views/license/license/components/detail.vue new file mode 100644 index 0000000..a104b0a --- /dev/null +++ b/apps/web-antd/src/views/license/license/components/detail.vue @@ -0,0 +1,122 @@ + + + diff --git a/apps/web-antd/src/views/license/license/components/ne-code.vue b/apps/web-antd/src/views/license/license/components/ne-code.vue new file mode 100644 index 0000000..f26c17f --- /dev/null +++ b/apps/web-antd/src/views/license/license/components/ne-code.vue @@ -0,0 +1,155 @@ + +