From 8c100859895716e016815aad4822444c0b3d5722 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Fri, 4 Jul 2025 15:38:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9F=BA=E7=AB=99=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/locales/langs/en-US/license.json | 2 +- .../src/locales/langs/zh-CN/license.json | 2 +- .../src/views/license/license/data.ts | 71 +++++++++---------- 3 files changed, 36 insertions(+), 39 deletions(-) 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 add8e75..a39d1ea 100644 --- a/apps/web-antd/src/locales/langs/en-US/license.json +++ b/apps/web-antd/src/locales/langs/en-US/license.json @@ -4,7 +4,7 @@ "expirationTime": "Expiration Time", "neSwitch": "NE Switch", "userNum": "User Count", - "baseStationNum": "Base Station Count", + "baseStationNum": "Base Station", "activationCode": "Activation Code", "licenseContent": "License Content", "applicant": "Applicant", 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 d47f490..31b2762 100644 --- a/apps/web-antd/src/locales/langs/zh-CN/license.json +++ b/apps/web-antd/src/locales/langs/zh-CN/license.json @@ -4,7 +4,7 @@ "expirationTime": "有效期", "neSwitch": "网元开关", "userNum": "用户数", - "baseStationNum": "基站数", + "baseStationNum": "基站", "activationCode": "激活码", "licenseContent": "License内容", "applicant": "申请人", diff --git a/apps/web-antd/src/views/license/license/data.ts b/apps/web-antd/src/views/license/license/data.ts index 42b17f1..03eae36 100644 --- a/apps/web-antd/src/views/license/license/data.ts +++ b/apps/web-antd/src/views/license/license/data.ts @@ -120,14 +120,6 @@ export function useFormSchema(): VbenFormSchema[] { formItemClass: 'col-span-2', modelPropName: 'modelValue', }, - // { - // fieldName: 'baseStationNum', - // label: $t('license.baseStationNum'), - // component: 'InputNumber', - // componentProps: { - // min: 0, - // }, - // }, { fieldName: 'activationCode', label: $t('license.activationCode'), @@ -147,6 +139,35 @@ export function useFormSchema(): VbenFormSchema[] { // options: [], // }, // }, + { + fieldName: 'userNum', + label: $t('license.userNum'), + component: 'InputNumber', + componentProps: { + min: 0, + }, + }, + { + fieldName: 'baseStationNum', + label: $t('license.baseStationNum'), + component: 'Input', + }, + // { + // fieldName: 'status', + // label: $t('license.status'), + // component: 'Select', + // componentProps: { + // options: getDictOptions(DICT_TYPE.LIC_LICENSE_STATUS, 'number'), + // buttonStyle: 'solid', + // optionType: 'button', + // }, + // }, + { + fieldName: 'remark', + label: $t('license.remark'), + component: 'Textarea', + formItemClass: 'col-span-2', + }, { fieldName: 'approver', label: $t('license.approver'), @@ -166,30 +187,6 @@ export function useFormSchema(): VbenFormSchema[] { option.label.toLowerCase().includes(input.toLowerCase()), }, }, - { - fieldName: 'userNum', - label: $t('license.userNum'), - component: 'InputNumber', - componentProps: { - min: 0, - }, - }, - // { - // fieldName: 'status', - // label: $t('license.status'), - // component: 'Select', - // componentProps: { - // options: getDictOptions(DICT_TYPE.LIC_LICENSE_STATUS, 'number'), - // buttonStyle: 'solid', - // optionType: 'button', - // }, - // }, - { - fieldName: 'remark', - label: $t('license.remark'), - component: 'Textarea', - formItemClass: 'col-span-2', - }, ]; } @@ -379,11 +376,11 @@ export function useGridColumns( title: $t('license.userNum'), minWidth: 120, }, - // { - // field: 'baseStationNum', - // title: $t('license.baseStationNum'), - // minWidth: 120, - // }, + { + field: 'baseStationNum', + title: $t('license.baseStationNum'), + minWidth: 120, + }, { field: 'activationCode', title: $t('license.activationCode'),