import { inject, observer, } from 'mobx-react'; import { WeaInput, WeaLocaleProvider, } from 'ecCom'; import { downloadCvs2Img } from './util' const getLabel = WeaLocaleProvider.getLabel; @inject('hrmApplicant') @observer export default class Query extends React.Component { constructor(props) { super(props); } componentWillUnmount() { this.props.hrmApplicant.resetQuery(); } downloadImg = (index, title) => { const cvs = document.getElementsByTagName('canvas'); downloadCvs2Img({ cvs: cvs[cvs.length - 1], title: title }); } render() { const { hrmApplicant, title, index, bl1, } = this.props, { query, tabs, inputCallback, getTabsDatas, } = hrmApplicant, { value, } = query, { key, } = tabs; return (
{ (key == '2' || key == '3') && {key == 2 ? getLabel('391163',"年薪区间") : getLabel('391165',"年限区间")} inputCallback(value)} /> {key == 2 ? getLabel('391164',"万元") : getLabel('26577',"年")} getTabsDatas()} /> } bl1 && this.downloadImg( index,title)} />
) } }