#
vincentlu
3 天以前 44153e246cc041180f8544e05d81f5432b14a808
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'