import { inject, observer, } from 'mobx-react'; import { WeaRadioGroup, } from 'ecCom' import React from 'react' import * as mobx from 'mobx' const toJS = mobx.toJS; @inject('hrmChangeReport') @observer class RadioGroupWrapper extends React.Component { constructor(props) { super(props); } componentDidMount() { const { hrmChangeReport } = this.props; hrmChangeReport.getSearchCondition('radioGroup'); } render() { const { hrmChangeReport } = this.props; const { condition } = hrmChangeReport; let arr = toJS(condition); return (
{ (arr.length > 0) ? { hrmChangeReport.setParamsThenGetData(params) } } /> : '' }
) } } export default RadioGroupWrapper