From 95b5e07a78b54c90aeac5b735ff71c62a92ff6ae Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Wed, 27 Aug 2025 14:22:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E8=AE=BA=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E8=BF=9B=E5=B1=95=EF=BC=9B=E9=A1=B9=E7=9B=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/locales/langs/zh-CN/project.json | 2 +- apps/web-antd/src/views/dashboard/index.vue | 2 +- .../src/views/license/project/data.ts | 30 +++++++++++-------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/apps/web-antd/src/locales/langs/zh-CN/project.json b/apps/web-antd/src/locales/langs/zh-CN/project.json index e8d50a1..bb095c0 100644 --- a/apps/web-antd/src/locales/langs/zh-CN/project.json +++ b/apps/web-antd/src/locales/langs/zh-CN/project.json @@ -20,7 +20,7 @@ "name": "项目名称", "envInfoFile": "环境信息附件", "list": "项目列表", - "progress": "评论", + "progress": "进展", "updateTime": "最后修改时间", "commentNum": "评论数", "softwareVersion": "软件版本", diff --git a/apps/web-antd/src/views/dashboard/index.vue b/apps/web-antd/src/views/dashboard/index.vue index 232ca5d..93c6754 100644 --- a/apps/web-antd/src/views/dashboard/index.vue +++ b/apps/web-antd/src/views/dashboard/index.vue @@ -141,7 +141,7 @@ onMounted(async () => { diff --git a/apps/web-antd/src/views/license/project/data.ts b/apps/web-antd/src/views/license/project/data.ts index a53d220..bc4a205 100644 --- a/apps/web-antd/src/views/license/project/data.ts +++ b/apps/web-antd/src/views/license/project/data.ts @@ -66,7 +66,7 @@ export function useFormSchema(): VbenFormSchema[] { component: 'InputNumber', rules: z .number({ message: $t('ui.formRules.required', [$t('project.code')]) }) - .min(2000, $t('ui.formRules.range', [$t('project.code'), 2000, 9999])) + .min(1000, $t('ui.formRules.range', [$t('project.code'), 1000, 9999])) .max(9999, $t('ui.formRules.range', [$t('project.code'), 2000, 9999])) .refine( async (value: number) => { @@ -243,6 +243,12 @@ export function useFormSchema(): VbenFormSchema[] { options: getDictOptions(DICT_TYPE.LIC_SOFTWARE_VERSION, 'number'), }, }, + { + fieldName: 'remark', + label: $t('project.remarks'), + component: 'Textarea', + formItemClass: 'col-span-2', + }, ]; } @@ -396,6 +402,11 @@ export function useGridColumns( onActionClick?: OnActionClickFn, ): VxeTableGridOptions['columns'] { return [ + { + field: 'customerName', + title: $t('customer.customerName'), + minWidth: 120, + }, { field: 'name', title: $t('project.name'), @@ -407,11 +418,6 @@ export function useGridColumns( minWidth: 120, visible: false, }, - { - field: 'customerName', - title: $t('customer.customerName'), - minWidth: 120, - }, { field: 'startTime', title: $t('project.startTime'), @@ -510,12 +516,12 @@ export function useGridColumns( props: { type: DICT_TYPE.LIC_SOFTWARE_VERSION }, }, }, - // { - // field: 'remark', - // title: $t('project.remarks'), - // visible: false, - // minWidth: 120, - // }, + { + field: 'remark', + title: $t('project.remarks'), + visible: false, + minWidth: 120, + }, { field: 'commentNum', title: $t('project.commentNum'),