#
luxiaotao1123
2024-02-22 6bc2d74ca9a45d3061b607e690548eacda74833a
zy-asrs-flow/src/pages/system/role/index.jsx
@@ -116,6 +116,7 @@
    const [searchParam, setSearchParam] = useState({});
    const [scopeModalVisible, setScopeModalVisible] = useState(false);
    const [menuIds, setMenuIds] = useState([]);
    useEffect(() => {
@@ -205,8 +206,13 @@
                    type="link"
                    key="scope"
                    onClick={() => {
                        setScopeModalVisible(true);
                        setCurrentRow(record);
                        Http.doGetPromise('/api/role/scope/list', { roleId: record.id }, (res) => {
                            if (res.data) {
                                setMenuIds(res.data);
                            }
                            setScopeModalVisible(true);
                            setCurrentRow(record);
                        });
                    }}
                >
                    分配权限
@@ -391,6 +397,7 @@
            <Scope
                open={scopeModalVisible}
                values={currentRow || {}}
                originMenuIds={menuIds}
                onCancel={
                    () => {
                        setScopeModalVisible(false);