fix: 日期查询
							parent
							
								
									2e3c43091a
								
							
						
					
					
						commit
						d7b1939ab7
					
				|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
|  |  | |||
|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
|  |  | |||
|  | @ -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, | ||||
|       }, | ||||
|     }, | ||||
|   ]; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 xingyu4j
						xingyu4j