From de7df1d489bdad38dcbeb78d74cad8e3bfa09e3d Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 27 九月 2024 16:59:34 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/mission/MissionList.jsx | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/page/mission/MissionList.jsx b/zy-acs-flow/src/page/mission/MissionList.jsx index 712cc13..3135d7c 100644 --- a/zy-acs-flow/src/page/mission/MissionList.jsx +++ b/zy-acs-flow/src/page/mission/MissionList.jsx @@ -30,6 +30,7 @@ ReferenceArrayInput, AutocompleteInput, ListToolbar, + Title, } from 'react-admin'; import { matchPath, useLocation } from 'react-router'; import { Box, Typography, Card, Stack } from '@mui/material'; @@ -40,6 +41,7 @@ import * as Common from '@/utils/common'; // import { MissionEmpty } from "./MissionEmpty"; import MissionShow from "./MissionShow"; +import { MissionListContent } from "./MissionListContent"; const MissionList = () => { @@ -63,17 +65,19 @@ const MissionLayout = () => { const location = useLocation(); const matchShow = matchPath('/mission/:id/show', location.pathname); + console.log(matchShow); + const { data, isPending, filterValues } = useListContext(); if (isPending) return null; console.log(data); - + if (!data?.length) { return ( <> {/* <MissionEmpty> */} - <MissionShow open={!!matchShow} id={matchShow?.params.id} /> - {/* <DealArchivedList /> */} + <MissionShow open={!!matchShow} id={matchShow?.params.id} /> + {/* <DealArchivedList /> */} {/* </MissionEmpty> */} </> ); @@ -89,7 +93,7 @@ </TopToolbar> )} /> <Card> - {/* <DealListContent /> */} + <MissionListContent /> </Card> {/* <DealArchivedList /> */} -- Gitblit v1.9.1