feat: 添加申请时间字段

This commit is contained in:
caiyuchao
2025-07-04 18:52:59 +08:00
parent bb9a082e78
commit b56b8c9a26
4 changed files with 20 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ export namespace LicenseApi {
activationCode: string; // 激活码
licenseContent: string; // License内容
applicant: number; // 申请人
applicationTime: Dayjs | string; // 申请时间
approver: number; // 审批人
status: number; // 状态
remark: string; // 备注

View File

@@ -17,5 +17,6 @@
"checkAll": "Check All",
"licenseAdminHelp": "Assigned to persons who have permission to generate licenses and send email reminders",
"apply": "Apply",
"applyAction": "Apply For {0}"
"applyAction": "Apply For {0}",
"applicationTime": "Application Time"
}

View File

@@ -17,5 +17,6 @@
"checkAll": "全选",
"licenseAdminHelp": "指派给有权限生成License的人员并且发送邮件提醒",
"apply": "申请",
"applyAction": "申请{0}"
"applyAction": "申请{0}",
"applicationTime": "申请时间"
}

View File

@@ -294,6 +294,15 @@ export function useGridFormSchema(): VbenFormSchema[] {
option.label.toLowerCase().includes(input.toLowerCase()),
},
},
{
fieldName: 'applicationTime',
label: $t('license.applicationTime'),
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
allowClear: true,
},
},
{
fieldName: 'approver',
label: $t('license.approver'),
@@ -401,6 +410,12 @@ export function useGridColumns(
title: $t('license.applicant'),
minWidth: 120,
},
{
field: 'applicationTime',
title: $t('license.applicationTime'),
minWidth: 120,
formatter: 'formatDateTime',
},
{
field: 'approver',
title: $t('license.approver'),