diff --git a/src/pages/calcTable/index.tsx b/src/pages/calcTable/index.tsx index fb4520c..91c003a 100644 --- a/src/pages/calcTable/index.tsx +++ b/src/pages/calcTable/index.tsx @@ -179,6 +179,9 @@ const index: FunctionComponent = (props) => { const handleFormulaTd = (dataIndex: string) => { window.parent.postMessage({ type: "turn", payload: { id: "FORMULA", params: { dataIndex } } }, "*"); }; + const handleDiagramTd = (salaryItemId: string, acctEmpId: string) => { + window.parent.postMessage({ type: "turn", payload: { id: "DIAGRAM", params: { salaryItemId, acctEmpId } } }, "*"); + }; const handleEdit = (id: string) => { window.parent.postMessage({ type: "turn", payload: { id: "EDIT", params: { id } } }, "*"); }; @@ -247,9 +250,6 @@ const index: FunctionComponent = (props) => { } /> ); - const handleDiagramTd = (salaryItemId: string, acctEmpId: string) => { - window.parent.postMessage({ type: "turn", payload: { id: "DIAGRAM", params: { salaryItemId, acctEmpId } } }, "*"); - }; }; export default index;