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'),