Compare commits

..

2 Commits

2 changed files with 5 additions and 5 deletions

View File

@ -81,8 +81,8 @@ const SyncForm: React.FC<SyncFormProps> = ({
...values, ...values,
dateRange: values.dateRange dateRange: values.dateRange
? [ ? [
dayjs(values.dateRange[0]).format('YYYY-MM-DDTHH:mm:s[Z]'), dayjs(values.dateRange[0]).format('YYYY-MM-DDTHH:mm:ss[Z]'),
dayjs(values.dateRange[1]).add(1, 'day').format('YYYY-MM-DDTHH:mm:s[Z]'), dayjs(values.dateRange[1]).add(1, 'day').format('YYYY-MM-DDTHH:mm:ss[Z]'),
] ]
: [], : [],
}; };

View File

@ -2,7 +2,7 @@ import { HistoryOrder } from '@/pages/Statistics/Order';
import { import {
customercontrollerAddtag, customercontrollerAddtag,
customercontrollerDeltag, customercontrollerDeltag,
customercontrollerGetcustomerlist, customercontrollerGetcustomerstatisticlist,
customercontrollerGettags, customercontrollerGettags,
customercontrollerSetrate, customercontrollerSetrate,
} from '@/servers/api/customer'; } from '@/servers/api/customer';
@ -200,9 +200,9 @@ const ListPage: React.FC = () => {
rowKey="id" rowKey="id"
request={async (params, sorter) => { request={async (params, sorter) => {
const key = Object.keys(sorter)[0]; const key = Object.keys(sorter)[0];
const { data, success } = await customercontrollerGetcustomerlist({ const { data, success } = await customercontrollerGetcustomerstatisticlist({
...params, ...params,
...(key ? { sorterKey: key, sorterValue: sorter[key] } : {}), ...(key ? { orderBy: `${key}:${sorter[key]}` } : {}),
}); });
return { return {