fix: 评论改为进展;项目添加备注

This commit is contained in:
caiyuchao
2025-08-27 14:22:27 +08:00
parent 482b456495
commit 95b5e07a78
3 changed files with 20 additions and 14 deletions

View File

@@ -20,7 +20,7 @@
"name": "项目名称", "name": "项目名称",
"envInfoFile": "环境信息附件", "envInfoFile": "环境信息附件",
"list": "项目列表", "list": "项目列表",
"progress": "评论", "progress": "进展",
"updateTime": "最后修改时间", "updateTime": "最后修改时间",
"commentNum": "评论数", "commentNum": "评论数",
"softwareVersion": "软件版本", "softwareVersion": "软件版本",

View File

@@ -141,7 +141,7 @@ onMounted(async () => {
<WorkbenchTrendsComment <WorkbenchTrendsComment
:items="projectProgressItems" :items="projectProgressItems"
class="mt-5" class="mt-5"
title="项目评论" title="项目进展"
/> />
</div> </div>
</div> </div>

View File

@@ -66,7 +66,7 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'InputNumber', component: 'InputNumber',
rules: z rules: z
.number({ message: $t('ui.formRules.required', [$t('project.code')]) }) .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])) .max(9999, $t('ui.formRules.range', [$t('project.code'), 2000, 9999]))
.refine( .refine(
async (value: number) => { async (value: number) => {
@@ -243,6 +243,12 @@ export function useFormSchema(): VbenFormSchema[] {
options: getDictOptions(DICT_TYPE.LIC_SOFTWARE_VERSION, 'number'), 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<ProjectApi.Project>, onActionClick?: OnActionClickFn<ProjectApi.Project>,
): VxeTableGridOptions<ProjectApi.Project>['columns'] { ): VxeTableGridOptions<ProjectApi.Project>['columns'] {
return [ return [
{
field: 'customerName',
title: $t('customer.customerName'),
minWidth: 120,
},
{ {
field: 'name', field: 'name',
title: $t('project.name'), title: $t('project.name'),
@@ -407,11 +418,6 @@ export function useGridColumns(
minWidth: 120, minWidth: 120,
visible: false, visible: false,
}, },
{
field: 'customerName',
title: $t('customer.customerName'),
minWidth: 120,
},
{ {
field: 'startTime', field: 'startTime',
title: $t('project.startTime'), title: $t('project.startTime'),
@@ -510,12 +516,12 @@ export function useGridColumns(
props: { type: DICT_TYPE.LIC_SOFTWARE_VERSION }, props: { type: DICT_TYPE.LIC_SOFTWARE_VERSION },
}, },
}, },
// { {
// field: 'remark', field: 'remark',
// title: $t('project.remarks'), title: $t('project.remarks'),
// visible: false, visible: false,
// minWidth: 120, minWidth: 120,
// }, },
{ {
field: 'commentNum', field: 'commentNum',
title: $t('project.commentNum'), title: $t('project.commentNum'),