From 28647ecb12f0dc6558c0c299d99e9a450d97fa22 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 12 十月 2024 13:50:12 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx b/zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx
index 088c916..940424a 100644
--- a/zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx
+++ b/zy-acs-flow/src/page/operationRecord/OperationRecordList.jsx
@@ -38,7 +38,7 @@
import MyExportButton from '../components/MyExportButton';
import PageDrawer from "../components/PageDrawer";
import MyField from "../components/MyField";
-import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting';
+import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting';
import * as Common from '@/utils/common';
import rowSx from './rowSx';
import { format } from 'date-fns';
@@ -50,6 +50,12 @@
},
'& .RaDatagrid-row': {
cursor: 'auto'
+ },
+ '& .column-url': {
+ maxWidth: '16em',
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
},
'& .column-request': {
maxWidth: '18em',
@@ -95,7 +101,7 @@
]}
/>,
<ReferenceInput source="userId" reference="user">
- <AutocompleteInput label="table.field.operationRecord.userId" optionText="nickname" />
+ <AutocompleteInput label="table.field.operationRecord.userId" optionText="nickname" filterToQuery={(val) => ({ nickname: val })} />
</ReferenceInput>,
<TextInput label="common.field.memo" source="memo" />,
@@ -129,7 +135,7 @@
<MyExportButton />
</TopToolbar>
)}
- perPage={25}
+ perPage={DEFAULT_PAGE_SIZE}
>
<StyledDatagrid
preferenceKey='operationRecord'
@@ -168,7 +174,6 @@
>
<OperationDetail
operation={drawerVal}
- setDrawerVal={setDrawerVal}
/>
</PageDrawer>
</Box>
--
Gitblit v1.9.1