release/2.19.1.2503.01-业务线个税
lys 5 months ago
parent f4f209c998
commit 3a6dd41f32

@ -7,7 +7,9 @@
import type { MutableRefObject } from "react"; import type { MutableRefObject } from "react";
import React, { useEffect, useMemo, useRef, useState } from "react"; import React, { useEffect, useMemo, useRef, useState } from "react";
import { notification } from "antd"; import { notification } from "antd";
// @ts-ignore
import type { RelationGraphExpose, RGNode, RGNodeSlotProps, RGOptions } from "relation-graph/react"; import type { RelationGraphExpose, RGNode, RGNodeSlotProps, RGOptions } from "relation-graph/react";
// @ts-ignore
import RelationGraph from "relation-graph/react"; import RelationGraph from "relation-graph/react";
import { exceptStr } from "@/utils/common"; import { exceptStr } from "@/utils/common";
import { extractTree } from "@/pages/salaryItemDiagram"; import { extractTree } from "@/pages/salaryItemDiagram";
@ -65,7 +67,7 @@ const Index: React.FC = () => {
} }
}, [dataSource]); }, [dataSource]);
const showGraph = async () => { const showGraph = async () => {
await graphRef.current.setJsonData(dataSource, (graphInstance) => { await graphRef.current.setJsonData(dataSource, () => {
}); });
}; };
const options: RGOptions = useMemo(() => { const options: RGOptions = useMemo(() => {

Loading…
Cancel
Save