#
luxiaotao1123
2024-02-19 03c068e4128f8235ae2d4c1570e234d6ea661770
zy-asrs-flow/src/pages/system/menu/index.jsx
@@ -290,7 +290,6 @@
            hidden: false,
            width: 100,
            render: (_, record) => {
                console.log(_);
                return <span style={{ fontWeight: "bold" }}>{_}</span>
            }
        },
@@ -492,18 +491,7 @@
                    }}
                    request={(params, sorter, filter) =>
                        Http.doPostPromise('/api/menu/tree', { ...params, ...searchParam }, (res) => {
                            console.log(res.data);
                            // console.log(res); return;
                            // const records = res.data.records;
                            // console.log(records);
                            // const rootMenu = { id: 0, label: '主类目', children: [], value: 0 };
                            // const memuData = buildTreeData(records, 'menuId', 'menuName', '', '', '');
                            // rootMenu.children = memuData;
                            // const treeData = [];
                            // treeData.push(rootMenu);
                            // setTreeData(treeData);
                            setTreeData(res.data)
                            return {
                                data: res.data,
                                success: true,
@@ -562,6 +550,7 @@
            <Edit
                open={modalVisible}
                values={currentRow || {}}
                treeData = {treeData}
                onCancel={
                    () => {
                        setModalVisible(false);
@@ -582,8 +571,7 @@
                            actionRef.current.reload();
                        }
                    }
                }
                }
                }}
            />
        </PageContainer>
    );