Commit 6bdbc8b4 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复时间查询的问题

parent 9e5d4855
......@@ -14,6 +14,7 @@ import {
DownOutlined,
} from '@ant-design/icons';
import { StandardTable } from 'god';
import moment from 'moment';
import { ColumnType } from 'antd/lib/table/interface';
import { createFormActions, FormEffectHooks, FormPath } from '@formily/antd';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
......@@ -54,7 +55,16 @@ const MemberQuery: React.FC<{}> = () => {
const [confirmLoading, setConfirmLoading] = useState(false);
const fetchData = async (params: any) => {
let res = await PublicApi.getMemberAbilityInfoPage(params);
const { startDate = null, endDate = null } = params;
const payload = { ...params };
if (startDate) {
payload.startDate = moment(+startDate).format('YYYY-MM-DD');
}
if (endDate) {
payload.endDate = moment(+endDate).format('YYYY-MM-DD');
}
let res = await PublicApi.getMemberAbilityInfoPage(payload);
return res.data;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment