refactor:优化 date 范围查找的函数
This commit is contained in:
@@ -5,7 +5,7 @@ import type { SystemSmsChannelApi } from '#/api/system/sms/channel';
|
||||
import { z } from '#/adapter/form';
|
||||
import { CommonStatusEnum } from '#/utils/constants';
|
||||
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
|
||||
import { rangePickerExtend } from '#/utils/TimeUtils';
|
||||
import { getRangePickerDefaultProps } from '#/utils/date';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
@@ -121,8 +121,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
label: '创建时间',
|
||||
component: 'RangePicker',
|
||||
componentProps: {
|
||||
...getRangePickerDefaultProps(),
|
||||
allowClear: true,
|
||||
...rangePickerExtend(),
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { SystemSmsLogApi } from '#/api/system/sms/log';
|
||||
|
||||
import { getSimpleSmsChannelList } from '#/api/system/sms/channel';
|
||||
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
|
||||
import { rangePickerExtend } from '#/utils/TimeUtils';
|
||||
import { getRangePickerDefaultProps } from '#/utils/date';
|
||||
|
||||
/** 列表的搜索表单 */
|
||||
export function useGridFormSchema(): VbenFormSchema[] {
|
||||
@@ -54,8 +54,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
label: '发送时间',
|
||||
component: 'RangePicker',
|
||||
componentProps: {
|
||||
...getRangePickerDefaultProps(),
|
||||
allowClear: true,
|
||||
...rangePickerExtend(),
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -73,8 +73,8 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
label: '接收时间',
|
||||
component: 'RangePicker',
|
||||
componentProps: {
|
||||
...getRangePickerDefaultProps(),
|
||||
allowClear: true,
|
||||
...rangePickerExtend(),
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -6,6 +6,7 @@ import { z } from '#/adapter/form';
|
||||
import { getSimpleSmsChannelList } from '#/api/system/sms/channel';
|
||||
import { CommonStatusEnum } from '#/utils/constants';
|
||||
import { DICT_TYPE, getDictOptions } from '#/utils/dict';
|
||||
import { getRangePickerDefaultProps } from '#/utils/date';
|
||||
|
||||
/** 新增/修改的表单 */
|
||||
export function useFormSchema(): VbenFormSchema[] {
|
||||
@@ -153,12 +154,12 @@ export function useGridFormSchema(): VbenFormSchema[] {
|
||||
placeholder: '请选择短信渠道',
|
||||
},
|
||||
},
|
||||
// TODO @芋艿:范围检索的处理
|
||||
{
|
||||
fieldName: 'createTime',
|
||||
label: '创建时间',
|
||||
component: 'RangePicker',
|
||||
componentProps: {
|
||||
...getRangePickerDefaultProps(),
|
||||
allowClear: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user