From f6121e26208fd4c06080e9ba7913d4755b3fd612 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 09 七月 2025 17:10:54 +0800
Subject: [PATCH] #前端

---
 rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx |   48 +++++++++++++++++++++++++++++-------------------
 1 files changed, 29 insertions(+), 19 deletions(-)

diff --git a/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx b/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
index ca962cd..f16724d 100644
--- a/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
+++ b/rsf-admin/src/page/basicInfo/warehouse/WarehouseList.jsx
@@ -44,19 +44,30 @@
 import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting';
 import * as Common from '@/utils/common';
 
-const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
-    '& .css-1vooibu-MuiSvgIcon-root': {
-        height: '.9em'
-    },
-    '& .RaDatagrid-row': {
-        cursor: 'auto'
-    },
-    '& .column-name': {
-    },
-    '& .opt': {
-        width: 200
-    },
-}));
+// const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
+//     '& .css-1vooibu-MuiSvgIcon-root': {
+//         height: '.9em'
+//     },
+//     '& .RaDatagrid-row': {
+//         cursor: 'auto'
+//     },
+//     '& .column-name': {
+//     },
+//     '& .opt': {
+//         width: 200
+//     },       
+//     '& .RaDatagrid-cell': {
+//         whiteSpace: 'nowrap',
+//         overflow: 'visible',
+//         textOverflow: 'unset',
+//         maxWidth: 'none'
+//     },
+//     '& .MuiTableCell-root': {
+//         whiteSpace: 'nowrap',
+//         overflow: 'visible',
+//         textOverflow: 'unset'
+//     }
+// }));
 
 const filters = [
     <SearchInput source="condition" alwaysOn />,
@@ -112,13 +123,13 @@
                         <MyExportButton />
                     </TopToolbar>
                 )}
-                perPage={DEFAULT_PAGE_SIZE}
+                perPage={DEFAULT_PAGE_SIZE}                
             >
-                <StyledDatagrid
+                <DatagridConfigurable
                     preferenceKey='warehouse'
                     bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />}
-                    rowClick={(id, resource, record) => false}
-                    omit={['id', 'createTime', 'createBy', 'memo']}
+                    rowClick={(id, resource, record) => false} 
+                    omit={['id', 'createTime', 'createBy', 'memo', 'longitude', 'latgitude', 'length', 'width', 'height']}
                 >
                     <NumberField source="id" />
                     <TextField source="factory" label="table.field.warehouse.factory" />
@@ -139,13 +150,12 @@
                         <TextField source="nickname" />
                     </ReferenceField>
                     <DateField source="createTime" label="common.field.createTime" showTime />
-                    <BooleanField source="statusBool" label="common.field.status" sortable={false} />
                     <TextField source="memo" label="common.field.memo" sortable={false} />
                     <WrapperField cellClassName="opt" label="common.field.opt">
                         <EditButton sx={{ padding: '1px', fontSize: '.75rem' }} />
                         <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} />
                     </WrapperField>
-                </StyledDatagrid>
+                </DatagridConfigurable>
             </List>
             <WarehouseCreate
                 open={createDialog}

--
Gitblit v1.9.1