refactor(Customer/StatisticList): 替换客户列表接口为统计列表接口并调整排序参数格式

This commit is contained in:
tikkhun 2026-01-30 16:44:13 +08:00
parent a9c0a8728f
commit fba6e4f83a
1 changed files with 3 additions and 3 deletions

View File

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