|
@@ -112,7 +112,7 @@ export const UserConsumptionTable: React.FC<UserConsumptionTableProps> = ({
|
|
|
|
|
|
|
|
// 构建查询参数
|
|
// 构建查询参数
|
|
|
const buildQueryParams = useCallback(() => {
|
|
const buildQueryParams = useCallback(() => {
|
|
|
- const params: Record<string, string | number> & {
|
|
|
|
|
|
|
+ const params: Record<string, string | number | boolean> & {
|
|
|
page: number;
|
|
page: number;
|
|
|
limit: number;
|
|
limit: number;
|
|
|
} = {
|
|
} = {
|
|
@@ -165,8 +165,7 @@ export const UserConsumptionTable: React.FC<UserConsumptionTableProps> = ({
|
|
|
const {
|
|
const {
|
|
|
data: consumptionData,
|
|
data: consumptionData,
|
|
|
isLoading: isConsumptionLoading,
|
|
isLoading: isConsumptionLoading,
|
|
|
- error: consumptionError,
|
|
|
|
|
- refetch: refetchConsumption
|
|
|
|
|
|
|
+ error: consumptionError
|
|
|
} = useQuery({
|
|
} = useQuery({
|
|
|
queryKey: ['data-overview-user-consumption', tenantId, timeFilter, pagination, forceRefresh],
|
|
queryKey: ['data-overview-user-consumption', tenantId, timeFilter, pagination, forceRefresh],
|
|
|
queryFn: async () => {
|
|
queryFn: async () => {
|