import React from 'react'; import {inject, observer} from 'mobx-react'; import {routerShape} from 'react-router'; import {Condition} from '../list/listCondition'; import {WeaErrorPage,WeaTools,WeaTop,WeaRightMenu,WeaLocaleProvider} from 'ecCom'; import {Button} from 'antd'; const getLabel = WeaLocaleProvider.getLabel; @inject("queryPrjStore") @observer class QueryProjectCondition extends React.Component { static contextTypes = { router: routerShape } constructor(props) { super(props); } resetHeight(height){ jQuery(".prj-query-condition").height(height - 60); } componentDidMount() { const {queryPrjStore} = this.props; queryPrjStore.initDatas(); } componentWillReceiveProps(nextProps){ if(this.props.location.key !== nextProps.location.key){ const {queryPrjStore} = this.props; queryPrjStore.initDatas({},true); } } shouldComponentUpdate(nextProps, nextState) { return true; } render() { const { queryPrjStore } = this.props; const { loading,form } = queryPrjStore; return (