feat: 个性化列本地保存和默认配置
This commit is contained in:
@@ -97,6 +97,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
pagerConfig: {
|
||||
enabled: true,
|
||||
},
|
||||
id: 'license-customer-list',
|
||||
customConfig: {
|
||||
storage: true,
|
||||
},
|
||||
proxyConfig: {
|
||||
ajax: {
|
||||
query: async ({ page }, formValues) => {
|
||||
|
||||
@@ -398,10 +398,12 @@ export function useGridColumns(
|
||||
{
|
||||
field: 'activationCode',
|
||||
title: $t('license.activationCode'),
|
||||
visible: false,
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
field: 'licenseContent',
|
||||
visible: false,
|
||||
title: $t('license.licenseContent'),
|
||||
minWidth: 120,
|
||||
},
|
||||
@@ -414,6 +416,7 @@ export function useGridColumns(
|
||||
field: 'applicationTime',
|
||||
title: $t('license.applicationTime'),
|
||||
minWidth: 120,
|
||||
visible: false,
|
||||
formatter: 'formatDateTime',
|
||||
},
|
||||
{
|
||||
@@ -433,6 +436,7 @@ export function useGridColumns(
|
||||
{
|
||||
field: 'remark',
|
||||
title: $t('license.remark'),
|
||||
visible: false,
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -102,6 +102,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
pagerConfig: {
|
||||
enabled: true,
|
||||
},
|
||||
id: 'license-license-list',
|
||||
customConfig: {
|
||||
storage: true,
|
||||
},
|
||||
proxyConfig: {
|
||||
ajax: {
|
||||
query: async ({ page }, formValues) => {
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
|
||||
@@ -96,6 +96,10 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
||||
pagerConfig: {
|
||||
enabled: true,
|
||||
},
|
||||
id: 'license-project-list',
|
||||
customConfig: {
|
||||
storage: true,
|
||||
},
|
||||
proxyConfig: {
|
||||
ajax: {
|
||||
query: async ({ page }, formValues) => {
|
||||
|
||||
Reference in New Issue
Block a user