From 0114b079a32f03f69dfcd4d77ed89b54694126e2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 29 九月 2024 16:25:03 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/mission/MissionList.jsx | 33 ++++-----------------------------
1 files changed, 4 insertions(+), 29 deletions(-)
diff --git a/zy-acs-flow/src/page/mission/MissionList.jsx b/zy-acs-flow/src/page/mission/MissionList.jsx
index 4e65cc9..f1bb75c 100644
--- a/zy-acs-flow/src/page/mission/MissionList.jsx
+++ b/zy-acs-flow/src/page/mission/MissionList.jsx
@@ -2,32 +2,11 @@
import { useNavigate } from 'react-router-dom';
import {
ListBase,
- DatagridConfigurable,
- SearchInput,
TopToolbar,
- SelectColumnsButton,
- EditButton,
FilterButton,
- CreateButton,
- ExportButton,
- BulkDeleteButton,
- WrapperField,
- useRecordContext,
- useTranslate,
useListContext,
- useCreatePath,
- TextField,
- NumberField,
- DateField,
- BooleanField,
- ReferenceField,
TextInput,
- DateTimeInput,
- DateInput,
- SelectInput,
- NumberInput,
ReferenceInput,
- ReferenceArrayInput,
AutocompleteInput,
ListToolbar,
Title,
@@ -35,13 +14,11 @@
import { matchPath, useLocation } from 'react-router';
import { Box, Typography, Card, Stack, LinearProgress } from '@mui/material';
import { styled } from '@mui/material/styles';
-import EmptyData from "../components/EmptyData";
import PageDrawer from "../components/PageDrawer";
-import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting';
import * as Common from '@/utils/common';
-// import { MissionEmpty } from "./MissionEmpty";
import MissionShow from "./MissionShow";
import { MissionListContent } from "./MissionListContent";
+import EmptyDataLoader from "../components/EmptyDataLoader";
const MissionList = () => {
@@ -68,7 +45,6 @@
const MissionLayout = () => {
const location = useLocation();
const matchShow = matchPath('/mission/:id/show', location.pathname);
- console.log(matchShow);
const { data, isPending, filterValues } = useListContext();
const hasFilters = filterValues && Object.keys(filterValues).length > 0;
@@ -77,10 +53,9 @@
if (!data?.length && !hasFilters) {
return (
<>
- {/* <MissionEmpty> */}
- <MissionShow open={!!matchShow} id={matchShow?.params.id} />
- {/* <DealArchivedList /> */}
- {/* </MissionEmpty> */}
+ <EmptyDataLoader>
+ <MissionShow open={!!matchShow} groupNo={matchShow?.params.id} />
+ </EmptyDataLoader>
</>
);
}
--
Gitblit v1.9.1