From c466f4d8c054270821ed0263f390178995621a74 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 03 三月 2025 10:27:08 +0800 Subject: [PATCH] #新增 1. 添加EXcel导入功能模板 --- rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx b/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx index be006b0..5480867 100644 --- a/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx +++ b/rsf-admin/src/page/basicInfo/matnr/MatnrList.jsx @@ -43,7 +43,7 @@ import MyField from "@/page/components/MyField"; import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; import * as Common from '@/utils/common'; -import ImportButton from "@/page/components/ImportButton"; +import ImportButton from "../../components/ImportButton"; import MatListAside from './MatnrListAside'; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ @@ -228,7 +228,9 @@ <FilterButton /> <MyCreateButton onClick={() => { setCreateDialog(true) }} /> <SelectColumnsButton preferenceKey='matnr' /> - <ImportButton /> + <MatnrList.Context.Provider value={'matnr'}> + <ImportButton /> + </MatnrList.Context.Provider> <MyExportButton /> </TopToolbar> )} @@ -251,4 +253,6 @@ ) } +MatnrList.Context = React.createContext() + export default MatnrList; \ No newline at end of file -- Gitblit v1.9.1