skyouc
2025-12-26 ff31d592924958958c21fdef1975d499586d964f
rsf-admin/src/page/basicInfo/matnrGroup/MatnrGroupList.jsx
@@ -39,21 +39,22 @@
const TITLE = 'menu.matnrGroup';
const columns = [
    {
        id: 'name',
        label: 'table.field.matnrGroup.name',
        minWidth: 200,
    },
    {
        id: 'code',
        label: 'table.field.matnrGroup.code',
        minWidth: 80,
    },
    {
        id: 'parentId',
        label: 'table.field.matnrGroup.parentId',
        minWidth: 100,
    }
        id: 'name',
        label: 'table.field.matnrGroup.name',
        Width: 100,
    },
    // {
    //     id: 'parCode',
    //     label: 'table.field.matnrGroup.parCode',
    //     minWidth: 100,
    // }
];
const getIconComponent = (iconStr) => {
@@ -196,15 +197,16 @@
            deleteOne(
                RESOURCE,
                { id: node.id },
                {
                    onSuccess: () => {
                        handleRefresh();
                        notify('Department deleted successfully', { type: 'info', messageArgs: { _: 'Department deleted successfully' } });
                    },
                    onError: (error) => {
                        notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
                    },
                }
                    {
                        onSuccess: () => {
                            handleRefresh();
                            const msg = translate('ra.message.delete_success');
                            notify(msg, { type: 'success', messageArgs: { _: msg } });
                        },
                        onError: (error) => {
                            notify(`Error: ${error.message}`, { type: 'warning', messageArgs: { _: `Error: ${error.message}` } });
                        },
                    }
            );
        }
    };
@@ -267,8 +269,8 @@
                    >
                        {expandAll ? translate('common.action.collapseAll') : translate('common.action.expandAll')}
                    </Button>
                    {/* <TextField
                        label="Search"
                    <TextField
                        label="搜索名称"
                        value={filter}
                        onChange={({ target }) => {
                            setFilter(target.value)
@@ -277,7 +279,7 @@
                        size="small"
                        margin="dense"
                        fullWidth
                    /> */}
                    />
                </Box>
                <Box>
                    <Button
@@ -353,4 +355,4 @@
    );
}
export default MatnrGroupList;
export default MatnrGroupList;