import '../../../style/report.less'; import React, {Component} from 'react'; import {inject,observer} from 'mobx-react'; import {WeaTop, WeaAlertPage, WeaRightMenu, WeaLocaleProvider} from 'ecCom'; import {Spin} from 'antd'; import {i18n} from '../../../public/i18n'; import SearchGroup from './SearchGroup'; import DataList from './DataList'; const getLabel = WeaLocaleProvider.getLabel; @inject('hrmAttendanceMonthReport') @observer export default class MonthReport extends Component{ constructor(props) { super(props); } componentDidMount() { this.init(); } componentWillReceiveProps(nextProps) { if (this.props.location.key !== nextProps.location.key) { this.init(); } } init = () => { const { hrmAttendanceMonthReport: store } = this.props; store.init(); } render(){ const {hrmAttendanceMonthReport: store} = this.props; const {containerInitFinished, getTopProps, spinning, spinTip} = store; const {buttons, menus} = getTopProps(); const topProps = { title: getLabel('390351','考勤汇总报表'), icon: , iconBgcolor: '#217346', showDropIcon: true, buttons: buttons, dropMenuDatas: menus } return (
{ containerInitFinished.init && containerInitFinished.authorized &&
} { containerInitFinished.init && !containerInitFinished.authorized &&
{i18n.message.authFailed()}
}
) } }