From d7b1939ab7e3b89a1cb10b6551f37532a575107a Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Wed, 28 May 2025 21:06:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E6=9C=9F=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-antd/src/views/member/point/record/data.ts | 9 ++++----- apps/web-antd/src/views/pay/notify/data.ts | 9 ++++----- apps/web-antd/src/views/pay/refund/data.ts | 14 +++++++++----- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/apps/web-antd/src/views/member/point/record/data.ts b/apps/web-antd/src/views/member/point/record/data.ts index 7363c3ba4..a1fb6cb4b 100644 --- a/apps/web-antd/src/views/member/point/record/data.ts +++ b/apps/web-antd/src/views/member/point/record/data.ts @@ -1,7 +1,7 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { VxeTableGridOptions } from '#/adapter/vxe-table'; -import { DICT_TYPE, getDictOptions } from '#/utils'; +import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; /** 列表的搜索表单 */ export function useGridFormSchema(): VbenFormSchema[] { @@ -28,11 +28,10 @@ export function useGridFormSchema(): VbenFormSchema[] { { fieldName: 'createDate', label: '获得时间', - component: 'DatePicker', + component: 'RangePicker', componentProps: { - type: 'daterange', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], + ...getRangePickerDefaultProps(), + allowClear: true, }, }, ]; diff --git a/apps/web-antd/src/views/pay/notify/data.ts b/apps/web-antd/src/views/pay/notify/data.ts index adb419578..7fc2e6354 100644 --- a/apps/web-antd/src/views/pay/notify/data.ts +++ b/apps/web-antd/src/views/pay/notify/data.ts @@ -2,7 +2,7 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import { getAppList } from '#/api/pay/app'; -import { DICT_TYPE, getDictOptions } from '#/utils'; +import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils'; /** 列表的搜索表单 */ export function useGridFormSchema(): VbenFormSchema[] { @@ -54,11 +54,10 @@ export function useGridFormSchema(): VbenFormSchema[] { { fieldName: 'createTime', label: '创建时间', - component: 'DatePicker', + component: 'RangePicker', componentProps: { - type: 'daterange', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], + ...getRangePickerDefaultProps(), + allowClear: true, }, }, ]; diff --git a/apps/web-antd/src/views/pay/refund/data.ts b/apps/web-antd/src/views/pay/refund/data.ts index 835860a7a..9a02febef 100644 --- a/apps/web-antd/src/views/pay/refund/data.ts +++ b/apps/web-antd/src/views/pay/refund/data.ts @@ -2,7 +2,12 @@ import type { VbenFormSchema } from '#/adapter/form'; import type { VxeTableGridOptions } from '#/adapter/vxe-table'; import { getAppList } from '#/api/pay/app'; -import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '#/utils'; +import { + DICT_TYPE, + getIntDictOptions, + getRangePickerDefaultProps, + getStrDictOptions, +} from '#/utils'; /** 列表的搜索表单 */ export function useGridFormSchema(): VbenFormSchema[] { @@ -64,11 +69,10 @@ export function useGridFormSchema(): VbenFormSchema[] { { fieldName: 'createTime', label: '创建时间', - component: 'DatePicker', + component: 'RangePicker', componentProps: { - type: 'daterange', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')], + ...getRangePickerDefaultProps(), + allowClear: true, }, }, ];