import { Button,Spin} from 'antd'; import {WeaDialog,WeaTab,WeaNewScroll,WeaRightMenu,WeaLocaleProvider } from 'ecCom'; import {inject, observer} from "mobx-react"; import {toJS} from 'mobx'; import PrjTaskListTable from '../comp/prjTaskListTable' import ProjectCondition from '../list/projectCondition' import StageList from '../common/stageList'; const getLabel = WeaLocaleProvider.getLabel; @observer class AddProjectDialog extends React.Component { constructor(props) { super(props); this.state={ width:1020, height:650, } } componentDidMount(){ } componentWillReceiveProps(nextProps){ } render() { const {addProjectStore} = this.props.contentStore; const {title,selectedKey,visible,conditionDatas:{userid,taskinfo,fieldinfo,taskViewAttr},saveListDatas,saveRowKeys,selectedRowKey,spinning} = addProjectStore; const {form,setFormFields,setValidate,isTimeShow} = addProjectStore; const tabs = [{key:"prjinfo",title:getLabel(16290,"项目信息")},{key:"sublist",title:getLabel(18505,"任务列表")}, { key: "stagelist", title: getLabel('387407',"阶段设置") },{ key: "rolelist", title: "角色管理" }]; const { width} = this.state; const formParams = form.getFormParams() || {}; const {roleIframeUrl} = addProjectStore; let dialogHeight = window.innerHeight - 150; if (dialogHeight > 600) dialogHeight = 600; return (
addProjectStore.handleShareDialog(false)} buttons={this.getDialogButtons()} >
{setFormFields(v)}} setValidate={(v)=>{setValidate(v)}} />
{saveListDatas(datas)}} onRowSelect={(rowkeys)=>{saveRowKeys(rowkeys)}} stageOptions={this.getStageOptions()} isTimeShow={isTimeShow} />
{ this.StageList = el }} contentStore={addProjectStore} />