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