|
|
|
@ -6,7 +6,7 @@
|
|
|
|
|
*/
|
|
|
|
|
import React, { FunctionComponent, useEffect, useMemo, useState } from "react";
|
|
|
|
|
import { Menu } from "antd";
|
|
|
|
|
import { FundFlowGraph } from "@ant-design/graphs";
|
|
|
|
|
// import { FundFlowGraph } from "@ant-design/graphs";
|
|
|
|
|
import { exceptStr } from "@/utils/common";
|
|
|
|
|
import { extractTree } from "@/pages/salaryItemDiagram";
|
|
|
|
|
import styles from "./index.less";
|
|
|
|
@ -161,7 +161,8 @@ const index: FunctionComponent<Props> = (props) => {
|
|
|
|
|
// fitCenter: true
|
|
|
|
|
};
|
|
|
|
|
}, [nodes, edges]);
|
|
|
|
|
return ((!_.isEmpty(nodes) && !_.isEmpty(edges)) ? <FundFlowGraph {...config} /> : null);
|
|
|
|
|
// <FundFlowGraph {...config} />
|
|
|
|
|
return ((!_.isEmpty(nodes) && !_.isEmpty(edges)) ? <div></div> : null);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default index;
|
|
|
|
|