feat: 添加申请次数和回车搜索
This commit is contained in:
@@ -27,6 +27,7 @@ export namespace LicenseApi {
|
|||||||
neCodeList: NeCode[]; // 操作
|
neCodeList: NeCode[]; // 操作
|
||||||
oldLicense: License;
|
oldLicense: License;
|
||||||
hasHistory: boolean;
|
hasHistory: boolean;
|
||||||
|
applyCount: number; // 申请次数
|
||||||
showUpload?: boolean; // 是否显示上传按钮
|
showUpload?: boolean; // 是否显示上传按钮
|
||||||
customerName?: string; // 客户名称
|
customerName?: string; // 客户名称
|
||||||
projectName?: string; // 项目名称
|
projectName?: string; // 项目名称
|
||||||
|
|||||||
@@ -34,5 +34,6 @@
|
|||||||
"downloadAll": "Download All",
|
"downloadAll": "Download All",
|
||||||
"reapply": "Reapply",
|
"reapply": "Reapply",
|
||||||
"reapplyAction": "Reapply For {0}",
|
"reapplyAction": "Reapply For {0}",
|
||||||
"history": "History"
|
"history": "History",
|
||||||
|
"applyCount": "Application Count"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,5 +34,6 @@
|
|||||||
"downloadAll": "全部下载",
|
"downloadAll": "全部下载",
|
||||||
"reapply": "重新申请",
|
"reapply": "重新申请",
|
||||||
"reapplyAction": "重新申请{0}",
|
"reapplyAction": "重新申请{0}",
|
||||||
"history": "历史"
|
"history": "历史",
|
||||||
|
"applyCount": "申请次数"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ function handleImport() {
|
|||||||
const [Grid, gridApi] = useVbenVxeGrid({
|
const [Grid, gridApi] = useVbenVxeGrid({
|
||||||
formOptions: {
|
formOptions: {
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
|
submitOnEnter: true,
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const props = withDefaults(
|
|||||||
neCodeList?: LicenseApi.NeCode[];
|
neCodeList?: LicenseApi.NeCode[];
|
||||||
}>(),
|
}>(),
|
||||||
{
|
{
|
||||||
neCodeList: () => [{ neList: [], activationCode: '', id: 1 }],
|
neCodeList: () => [{ neList: [], activationCode: '', id: 1, fileUrl: '' }],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -361,6 +361,11 @@ export function useGridColumns(): VxeTableGridOptions<LicenseApi.License>['colum
|
|||||||
minWidth: 120,
|
minWidth: 120,
|
||||||
formatter: 'formatDateTime',
|
formatter: 'formatDateTime',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'applyCount',
|
||||||
|
title: $t('license.applyCount'),
|
||||||
|
minWidth: 70,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'operation',
|
field: 'operation',
|
||||||
title: $t('license.operation'),
|
title: $t('license.operation'),
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
collapsed: true,
|
collapsed: true,
|
||||||
collapsedRows: 2,
|
collapsedRows: 2,
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
|
submitOnEnter: true,
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(),
|
columns: useGridColumns(),
|
||||||
|
|||||||
@@ -514,6 +514,11 @@ export function useGridColumns(
|
|||||||
title: $t('project.commentNum'),
|
title: $t('project.commentNum'),
|
||||||
minWidth: 70,
|
minWidth: 70,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'applyCount',
|
||||||
|
title: $t('license.applyCount'),
|
||||||
|
minWidth: 70,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'updateTime',
|
field: 'updateTime',
|
||||||
title: $t('project.updateTime'),
|
title: $t('project.updateTime'),
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
collapsed: true,
|
collapsed: true,
|
||||||
collapsedRows: 2,
|
collapsedRows: 2,
|
||||||
schema: useGridFormSchema(),
|
schema: useGridFormSchema(),
|
||||||
|
submitOnEnter: true,
|
||||||
},
|
},
|
||||||
gridOptions: {
|
gridOptions: {
|
||||||
columns: useGridColumns(onActionClick),
|
columns: useGridColumns(onActionClick),
|
||||||
|
|||||||
Reference in New Issue
Block a user