This commit is contained in:
archer
2023-07-25 16:18:46 +08:00
parent 67724f2fa6
commit 815770467a
2 changed files with 6 additions and 3 deletions

View File

@@ -5,11 +5,13 @@ import { usePagination } from '@/hooks/usePagination';
import { useLoading } from '@/hooks/useLoading'; import { useLoading } from '@/hooks/useLoading';
import type { informSchema } from '@/types/mongoSchema'; import type { informSchema } from '@/types/mongoSchema';
import { formatTimeToChatTime } from '@/utils/tools'; import { formatTimeToChatTime } from '@/utils/tools';
import { useGlobalStore } from '@/store/global';
import MyIcon from '@/components/Icon'; import MyIcon from '@/components/Icon';
const BillTable = () => { const BillTable = () => {
const theme = useTheme(); const theme = useTheme();
const { Loading } = useLoading(); const { Loading } = useLoading();
const { isPc } = useGlobalStore();
const { const {
data: informs, data: informs,
isLoading, isLoading,
@@ -19,7 +21,8 @@ const BillTable = () => {
getData, getData,
pageNum pageNum
} = usePagination<informSchema>({ } = usePagination<informSchema>({
api: getInforms api: getInforms,
pageSize: isPc ? 20 : 10
}); });
return ( return (

View File

@@ -58,7 +58,7 @@ const PayRecordTable = () => {
}); });
return ( return (
<> <Box position={'relative'} h={'100%'}>
{!isInitialLoading && payOrders.length === 0 ? ( {!isInitialLoading && payOrders.length === 0 ? (
<Flex h={'100%'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}> <Flex h={'100%'} flexDirection={'column'} alignItems={'center'} justifyContent={'center'}>
<MyIcon name="empty" w={'48px'} h={'48px'} color={'transparent'} /> <MyIcon name="empty" w={'48px'} h={'48px'} color={'transparent'} />
@@ -101,7 +101,7 @@ const PayRecordTable = () => {
</TableContainer> </TableContainer>
)} )}
<Loading loading={isInitialLoading} fixed={false} /> <Loading loading={isInitialLoading} fixed={false} />
</> </Box>
); );
}; };