/* * @Author: lusx * @Date: 2020-04-02 11:45:21 * @Last Modified by: lusx * @Last Modified time: 2020-04-24 16:12:13 */ import React from 'react'; import { Row, Col, Progress, Tooltip } from 'antd'; import { inject, observer } from 'mobx-react'; import chunk from 'lodash/chunk'; import { WeaLocaleProvider } from 'ecCom'; const getLabel = WeaLocaleProvider.getLabel; export const Count = inject('projectCardStore')(observer((props) => { const { jxz, rwzs, wcl, wks, xmjd, yq, yql, ywc } = props.projectCardStore.statistics; const top = [{ label: getLabel('31411','项目进度'), value: xmjd, status: "", key: "0" }, { label: getLabel('30447','完成率'), value: wcl, status: "success", key: "1" }, { label: getLabel('518313','延期率'), value: yql, status: "exception", key: "2" }]; const boottom = [{ label: getLabel('383462','未开始'), value: wks, key: "0" }, { label: getLabel('1960','进行中'), value: jxz, key: "1" }, { label: getLabel('23774','已完成'), value: ywc, key: "2" }, { label: getLabel('2244','延期'), value: yq, key: "4" }]; return ( {top.length > 0 && top.map(t => ( t.label} /> ))} { boottom.length > 0 && boottom.map((cell) => ( {cell.value} {cell.label} )) } ) }))