#
luxiaotao1123
2024-02-21 dca78d5fd0c67fd841d6841ef2cd94a10669c356
zy-asrs-flow/src/pages/system/dept/index.jsx
@@ -12,17 +12,7 @@
import Edit from './components/edit'
import { TextFilter, SelectFilter, DatetimeRangeFilter, LinkFilter } from '@/components/TableSearch'
import { transformTreeData } from '@/utils/tree-util'
const statusMap = {
    1: {
        color: 'green',
        text: '正常',
    },
    0: {
        color: 'red',
        text: '禁用',
    },
};
import { statusMap } from '@/utils/enum-util'
const handleSave = async (val) => {
    const hide = message.loading('正在添加');
@@ -115,18 +105,11 @@
    const columns = [
        {
            title: 'No',
            dataIndex: 'index',
            valueType: 'indexBorder',
            width: 48,
        },
        {
            title: '部门名称',
            dataIndex: 'name',
            valueType: 'text',
            hidden: false,
            width: 140,
            copyable: true,
            width: 240,
            filterDropdown: (props) => <TextFilter
                name='name'
                {...props}
@@ -135,7 +118,7 @@
            />,
        },
        {
            title: '上级部门名',
            title: '上级部门',
            dataIndex: 'parentName',
            valueType: 'text',
            hidden: true,
@@ -356,7 +339,7 @@
                    cardBordered
                    scroll={{ x: 1300 }}
                    dateFormatter="string"
                    pagination={{ pageSize: 20 }}
                    pagination={{ pageSize: 100 }}
                    search={false}
                    toolbar={{
                        search: {