fix: 日期查询
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import type { VbenFormSchema } from '#/adapter/form';
|
import type { VbenFormSchema } from '#/adapter/form';
|
||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
|
|
||||||
import { DICT_TYPE, getDictOptions } from '#/utils';
|
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||||
|
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
export function useGridFormSchema(): VbenFormSchema[] {
|
export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
@@ -28,11 +28,10 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'createDate',
|
fieldName: 'createDate',
|
||||||
label: '获得时间',
|
label: '获得时间',
|
||||||
component: 'DatePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
type: 'daterange',
|
...getRangePickerDefaultProps(),
|
||||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
allowClear: true,
|
||||||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import type { VbenFormSchema } from '#/adapter/form';
|
|||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
|
|
||||||
import { getAppList } from '#/api/pay/app';
|
import { getAppList } from '#/api/pay/app';
|
||||||
import { DICT_TYPE, getDictOptions } from '#/utils';
|
import { DICT_TYPE, getDictOptions, getRangePickerDefaultProps } from '#/utils';
|
||||||
|
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
export function useGridFormSchema(): VbenFormSchema[] {
|
export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
@@ -54,11 +54,10 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'createTime',
|
fieldName: 'createTime',
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
component: 'DatePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
type: 'daterange',
|
...getRangePickerDefaultProps(),
|
||||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
allowClear: true,
|
||||||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,7 +2,12 @@ import type { VbenFormSchema } from '#/adapter/form';
|
|||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
|
|
||||||
import { getAppList } from '#/api/pay/app';
|
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[] {
|
export function useGridFormSchema(): VbenFormSchema[] {
|
||||||
@@ -64,11 +69,10 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
|||||||
{
|
{
|
||||||
fieldName: 'createTime',
|
fieldName: 'createTime',
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
component: 'DatePicker',
|
component: 'RangePicker',
|
||||||
componentProps: {
|
componentProps: {
|
||||||
type: 'daterange',
|
...getRangePickerDefaultProps(),
|
||||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
allowClear: true,
|
||||||
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user