|
@@ -65,7 +65,6 @@ function F1exhibition() {
|
|
|
) : item.type === '日期选择' ? (
|
|
|
<RangePicker
|
|
|
format='YYYY-MM-DD'
|
|
|
- showTime
|
|
|
allowClear={true}
|
|
|
value={formData[item.key] as undefined}
|
|
|
onChange={e => setFormData({ ...formData, [item.key]: e })}
|
|
@@ -125,9 +124,9 @@ function F1exhibition() {
|
|
|
const { date, ...rest } = formDataRef.current
|
|
|
if (Array.isArray(date) && date.length) {
|
|
|
// @ts-ignore
|
|
|
- rest.startTime = dayjs(date[0]).format('YYYY-MM-DD HH:mm:ss')
|
|
|
+ rest.startTime = dayjs(date[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
// @ts-ignore
|
|
|
- rest.endTime = dayjs(date[1]).format('YYYY-MM-DD HH:mm:ss')
|
|
|
+ rest.endTime = dayjs(date[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
}
|
|
|
formDataOldRef.current = rest
|
|
|
dispatch(F1_APIList(rest))
|