import { inject, observer} from 'mobx-react'; import {Row,Col,Input,Button,Alert,Spin,Icon} from 'antd' import {WeaTop} from "ecCom" import MLinkCard from './MLinkCard'; import OLinkCard from './OLinkCard'; import AddProject from '../dialog/addProjectDialog' import {WeaLocaleProvider} from 'ecCom'; const getLabel = WeaLocaleProvider.getLabel; @inject('prjAddStore') @observer class PrjAdd extends React.Component { componentDidMount() { const {prjAddStore} = this.props; prjAddStore.initDatas(); this.scrollheigth(); } scrollheigth(){ let top = jQuery(".wea-prj-add-content").offset() ? (jQuery(".wea-prj-add-content").offset().top ? jQuery(".wea-prj-add-content").offset().top : 0) : 0; let scrollheigth = document.documentElement.clientHeight - top; jQuery(".wea-prj-add-content").height(scrollheigth-30); } componentWillReceiveProps(nextProps){ const keyOld = this.props.location.key; const keyNew = nextProps.location.key; if(keyOld !== keyNew) { const {prjAddStore} = nextProps; prjAddStore.initDatas(); this.scrollheigth(); } } componentWillUnmount(){ const { prjAddStore } = this.props; prjAddStore.clearStatus(); } render() { const {prjAddStore} = this.props; const {showDatas = {},mulitcol,isAbc,loading,addProjectStore} = prjAddStore; const {typesShow,typesCols,usedBeans,abcBtns,user} = showDatas; const actions = {addProjectStore}; return (