/* * Author: 黎永顺 * name: 公司组件 * Description: * Date: 2023/5/10 */ import React, { FunctionComponent } from "react"; import { OrgChartNodeDataType } from "@/components/reactChart/interface"; import styles from "./index.less"; import classNames from "classnames"; interface OwnProps { node: OrgChartNodeDataType; } type Props = OwnProps; const RegionItem: FunctionComponent = (props) => { const { node } = props; const classes = classNames(styles["regionItemWrapper"], { [styles["regionItemWrapperChild"]]: node.key === 20 || node.key === 21 || node.key === 22 || node.key === 23 || node.key === 24 || node.key === 25 }); return (
{node?.label}
营业收入 {node?.operatingIncome}
同比 {node?.operatingIncomePercent}
利润总额 {node?.operatingProfit}
同比 {node?.operatingProfitPercent}
); }; export default RegionItem;