feat: 添加申请次数和回车搜索

This commit is contained in:
caiyuchao
2025-08-15 18:46:03 +08:00
parent 4698b63b0e
commit 72303ee5e7
9 changed files with 19 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ function handleImport() {
const [Grid, gridApi] = useVbenVxeGrid({
formOptions: {
schema: useGridFormSchema(),
submitOnEnter: true,
},
gridOptions: {
columns: useGridColumns(),

View File

@@ -17,7 +17,7 @@ const props = withDefaults(
neCodeList?: LicenseApi.NeCode[];
}>(),
{
neCodeList: () => [{ neList: [], activationCode: '', id: 1 }],
neCodeList: () => [{ neList: [], activationCode: '', id: 1, fileUrl: '' }],
},
);

View File

@@ -361,6 +361,11 @@ export function useGridColumns(): VxeTableGridOptions<LicenseApi.License>['colum
minWidth: 120,
formatter: 'formatDateTime',
},
{
field: 'applyCount',
title: $t('license.applyCount'),
minWidth: 70,
},
{
field: 'operation',
title: $t('license.operation'),

View File

@@ -124,6 +124,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
collapsed: true,
collapsedRows: 2,
schema: useGridFormSchema(),
submitOnEnter: true,
},
gridOptions: {
columns: useGridColumns(),

View File

@@ -514,6 +514,11 @@ export function useGridColumns(
title: $t('project.commentNum'),
minWidth: 70,
},
{
field: 'applyCount',
title: $t('license.applyCount'),
minWidth: 70,
},
{
field: 'updateTime',
title: $t('project.updateTime'),

View File

@@ -112,6 +112,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
collapsed: true,
collapsedRows: 2,
schema: useGridFormSchema(),
submitOnEnter: true,
},
gridOptions: {
columns: useGridColumns(onActionClick),