From 44153e246cc041180f8544e05d81f5432b14a808 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期三, 04 三月 2026 07:52:45 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/codeGap/CodeGapList.jsx |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/zy-acs-flow/src/page/codeGap/CodeGapList.jsx b/zy-acs-flow/src/page/codeGap/CodeGapList.jsx
index 279bd2f..2ff4f3c 100644
--- a/zy-acs-flow/src/page/codeGap/CodeGapList.jsx
+++ b/zy-acs-flow/src/page/codeGap/CodeGapList.jsx
@@ -40,7 +40,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';
 
 const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
@@ -63,10 +63,10 @@
     <DateInput label='common.time.before' source="timeEnd" alwaysOn />,
 
     <ReferenceInput source="code0" label="table.field.codeGap.code0" reference="code" alwaysOn>
-        <AutocompleteInput label="table.field.codeGap.code0" optionText="data" />
+        <AutocompleteInput label="table.field.codeGap.code0" optionText="data" filterToQuery={(val) => ({ data: val })} />
     </ReferenceInput>,
     <ReferenceInput source="code1" label="table.field.codeGap.code1" reference="code" alwaysOn>
-        <AutocompleteInput label="table.field.codeGap.code1" optionText="data" />
+        <AutocompleteInput label="table.field.codeGap.code1" optionText="data" filterToQuery={(val) => ({ data: val })} />
     </ReferenceInput>,
     <NumberInput source="distance" label="table.field.codeGap.distance" />,
 
@@ -96,7 +96,7 @@
                         theme.transitions.create(['all'], {
                             duration: theme.transitions.duration.enteringScreen,
                         }),
-                    marginRight: !!drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
+                    marginRight: drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0,
                 }}
                 title={"menu.codeGap"}
                 empty={<EmptyData onClick={() => { setCreateDialog(true) }} />}
@@ -110,7 +110,7 @@
                         <MyExportButton />
                     </TopToolbar>
                 )}
-                perPage={25}
+                perPage={DEFAULT_PAGE_SIZE}
             >
                 <StyledDatagrid
                     preferenceKey='codeGap'

--
Gitblit v1.9.1