From 8777aeac7a63edab6e8d2b76f5f01826453b1d19 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 23 二月 2024 16:05:31 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/system/dept/index.jsx |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/zy-asrs-flow/src/pages/system/dept/index.jsx b/zy-asrs-flow/src/pages/system/dept/index.jsx
index 1cc463a..154b647 100644
--- a/zy-asrs-flow/src/pages/system/dept/index.jsx
+++ b/zy-asrs-flow/src/pages/system/dept/index.jsx
@@ -13,6 +13,9 @@
 import { TextFilter, SelectFilter, DatetimeRangeFilter, LinkFilter } from '@/components/TableSearch'
 import { transformTreeData } from '@/utils/tree-util'
 import { statusMap } from '@/utils/enum-util'
+import { repairBug } from '@/utils/common-util';
+
+const TABLE_KEY = "pro-table-dept";
 
 const handleSave = async (val) => {
     const hide = message.loading('姝e湪娣诲姞');
@@ -134,7 +137,7 @@
             title: '鍏ㄧО',
             dataIndex: 'fullName',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='fullName'
@@ -147,7 +150,7 @@
             title: '绠�杩�',
             dataIndex: 'brief',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='brief'
@@ -160,7 +163,7 @@
             title: '鏍囪瘑',
             dataIndex: 'code',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='code'
@@ -173,7 +176,7 @@
             title: '绫诲瀷',
             dataIndex: 'type',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='type'
@@ -199,7 +202,7 @@
             title: '鏁伴噺',
             dataIndex: 'count',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='count'
@@ -276,7 +279,7 @@
             title: '澶囨敞',
             dataIndex: 'memo',
             valueType: 'text',
-            hidden: true,
+            hidden: false,
             width: 140,
             filterDropdown: (props) => <TextFilter
                 name='memo'
@@ -403,9 +406,15 @@
                         }
                     }}
                     columnsState={{
-                        persistenceKey: 'pro-table-dept',
+                        persistenceKey: TABLE_KEY,
                         persistenceType: 'localStorage',
                         defaultValue: {
+                            fullName: { show: repairBug(TABLE_KEY, 'fullName', false) },
+                            brief: { show: repairBug(TABLE_KEY, 'brief', false) },
+                            code: { show: repairBug(TABLE_KEY, 'code', false) },
+                            type: { show: repairBug(TABLE_KEY, 'type', false) },
+                            count: { show: repairBug(TABLE_KEY, 'count', false) },
+                            memo: { show: repairBug(TABLE_KEY, 'memo', false) },
                             option: { fixed: 'right', disable: true },
                         },
                         onChange(value) {

--
Gitblit v1.9.1