#
luxiaotao1123
2024-02-23 8777aeac7a63edab6e8d2b76f5f01826453b1d19
#
1个文件已修改
23 ■■■■■ 已修改文件
zy-asrs-flow/src/pages/system/dept/index.jsx 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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('正在添加');
@@ -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) {