import { useEffect, useState } from 'react'; import { history } from 'umi'; import { Row, Col } from 'antd' import { AppstoreOutlined, AuditOutlined, FieldTimeOutlined } from '@ant-design/icons' // import { getcomm } from '@/services/statis'; import StatisGroup from './StatisGroup'; const colorList = [ { backColor: '#126BAE', frontColor: '#fff' }, { backColor: '#66A9C9', frontColor: '#fff' }, { backColor: '#08507b', frontColor: '#fff' }, ] export default (props) => { const [cardData, setCardData] = useState({}) const toAbnormal = () => { history.push('../resume-work/abnormal'); } useEffect(() => { // getcomm().then((res) => { // setCardData(res || {}); // }) }, []) const abnormalNum = (cardData.todayReportNum || 0) - (cardData.todayNormalNum || 0) return ( } /> } /> } onClick2={toAbnormal} /> ) }