From 70fd9528e6e00a12ed9b70c253c557aa5055ce8e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 26 二月 2024 09:38:48 +0800
Subject: [PATCH] #

---
 zy-asrs-framework/src/main/resources/templates/react/Index.txt |   78 +++++++--------------------------------
 1 files changed, 14 insertions(+), 64 deletions(-)

diff --git a/zy-asrs-framework/src/main/resources/templates/react/Index.txt b/zy-asrs-framework/src/main/resources/templates/react/Index.txt
index 67a4a35..f253b50 100644
--- a/zy-asrs-framework/src/main/resources/templates/react/Index.txt
+++ b/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('姝e湪娣诲姞');
@@ -106,66 +110,7 @@
             valueType: 'indexBorder',
             width: 48,
         },
-        {
-            title: '濮撳悕',
-            dataIndex: 'name',
-            valueType: 'text',
-            copyable: true,
-            filterDropdown: (props) => <TextFilter
-                name='name'
-                {...props}
-                actionRef={actionRef}
-                setSearchParam={setSearchParam}
-            />,
-        },
-        {
-            title: '鏍囪瘑',
-            dataIndex: 'code',
-            valueType: 'text',
-            filterDropdown: (props) => <TextFilter
-                name='code'
-                {...props}
-                actionRef={actionRef}
-                setSearchParam={setSearchParam}
-            />,
-        },
-        {
-            title: '鏈烘瀯',
-            dataIndex: 'hostId$',
-            valueType: 'text',
-            filterDropdown: (props) => <LinkFilter
-                name='hostId'
-                {...props}
-                actionRef={actionRef}
-                setSearchParam={setSearchParam}
-            />,
-        },
-        {
-            title: '鐘舵��',
-            dataIndex: 'status$',
-            valueType: 'text',
-            filterDropdown: (props) => <SelectFilter
-                name='status'
-                {...props}
-                actionRef={actionRef}
-                setSearchParam={setSearchParam}
-                data={[
-                    { label: '姝e父', value: 1 },
-                    { label: '绂佺敤', value: 0 },
-                ]}
-            />,
-        },
-        {
-            title: '淇敼鏃堕棿',
-            dataIndex: 'updateTime$',
-            valueType: 'text',
-            filterDropdown: (props) => <DatetimeRangeFilter
-                name='updateTime'
-                {...props}
-                actionRef={actionRef}
-                setSearchParam={setSearchParam}
-            />,
-        },
+@{TABLECOLUMNS}
         {
             title: '鎿嶄綔',
             dataIndex: 'option',
@@ -208,7 +153,11 @@
     ];
 
     return (
-        <PageContainer>
+        <PageContainer
+            header={{
+                breadcrumb: {},
+            }}
+        >
             <div style={{ width: '100%', float: 'right' }}>
                 <ProTable
                     key="@{SIMPLEENTITYNAME}"
@@ -217,6 +166,7 @@
                     formRef={formTableRef}
                     columns={columns}
                     cardBordered
+                    scroll={{ x: 1300 }}
                     dateFormatter="string"
                     pagination={{ pageSize: 20 }}
                     search={false}
@@ -274,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) {
@@ -340,8 +291,7 @@
                             actionRef.current.reload();
                         }
                     }
-                }
-                }
+                }}
             />
         </PageContainer>
     );

--
Gitblit v1.9.1