#
luxiaotao1123
2024-02-26 25d899c51835dbae2fa336b8b7d7a863a078b210
zy-asrs-framework/src/main/resources/templates/react/Index.txt
@@ -11,6 +11,10 @@
import Http from '@/utils/http';
import Edit from './components/edit'
import { TextFilter, SelectFilter, DatetimeRangeFilter, LinkFilter } from '@/components/TableSearch'
import { statusMap } from '@/utils/enum-util'
import { repairBug } from '@/utils/common-util';
const TABLE_KEY = 'pro-table-@{SIMPLEENTITYNAME}';
const handleSave = async (val) => {
    const hide = message.loading('正在添加');
@@ -149,7 +153,11 @@
    ];
    return (
        <PageContainer>
        <PageContainer
            header={{
                breadcrumb: {},
            }}
        >
            <div style={{ width: '100%', float: 'right' }}>
                <ProTable
                    key="@{SIMPLEENTITYNAME}"
@@ -216,9 +224,10 @@
                        }
                    }}
                    columnsState={{
                        persistenceKey: 'pro-table-@{SIMPLEENTITYNAME}',
                        persistenceKey: TABLE_KEY,
                        persistenceType: 'localStorage',
                        defaultValue: {
                            memo: { show: repairBug(TABLE_KEY, 'memo', false) },
                            option: { fixed: 'right', disable: true },
                        },
                        onChange(value) {
@@ -282,8 +291,7 @@
                            actionRef.current.reload();
                        }
                    }
                }
                }
                }}
            />
        </PageContainer>
    );