feat: 个性化列本地保存和默认配置

This commit is contained in:
caiyuchao
2025-07-08 15:17:45 +08:00
parent 5e09229143
commit 1ae87e9ecb
5 changed files with 38 additions and 15 deletions

View File

@@ -401,12 +401,19 @@ export function useGridColumns(
field: 'code',
title: $t('project.code'),
minWidth: 120,
visible: false,
},
{
field: 'customerName',
title: $t('project.belongCustomer'),
minWidth: 120,
},
{
field: 'startTime',
title: $t('project.startTime'),
minWidth: 120,
formatter: 'formatDateTime',
},
{
field: 'contractCode',
title: $t('project.contractCode'),
@@ -416,11 +423,21 @@ export function useGridColumns(
field: 'businessStatus',
title: $t('project.businessStatus'),
minWidth: 120,
visible: false,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.LIC_BUSINESS_STATUS },
},
},
{
field: 'status',
title: $t('project.status'),
minWidth: 120,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.LIC_PROJECT_STATUS },
},
},
{
field: 'businessOwnerName',
title: $t('project.businessOwner'),
@@ -429,6 +446,7 @@ export function useGridColumns(
{
field: 'customerOwnerName',
title: $t('project.customerOwner'),
visible: false,
minWidth: 120,
},
{
@@ -446,40 +464,29 @@ export function useGridColumns(
title: $t('project.technicalOwnerC'),
minWidth: 120,
},
{
field: 'startTime',
title: $t('project.startTime'),
minWidth: 120,
formatter: 'formatDateTime',
},
{
field: 'endTime',
title: $t('project.endTime'),
visible: false,
minWidth: 120,
formatter: 'formatDateTime',
},
{
field: 'status',
title: $t('project.status'),
minWidth: 120,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.LIC_PROJECT_STATUS },
},
},
{
field: 'envInfo',
title: $t('project.envInfo'),
visible: false,
minWidth: 120,
},
{
field: 'remark',
title: $t('project.remarks'),
visible: false,
minWidth: 120,
},
{
field: 'createTime',
title: $t('project.creationTime'),
visible: false,
minWidth: 120,
formatter: 'formatDateTime',
},