import {Modal, Input, Button,Table } from 'antd'; import {WeaDialog, WeaSearchGroup, WeaInput,WeaAuth ,WeaTab,WeaTools,WeaNewScroll,WeaFormItem,WeaProgress,WeaLocaleProvider} from 'ecCom'; import {inject, observer} from "mobx-react"; import {toJS} from 'mobx'; import _mapValues from 'lodash/mapValues' import {WeaTableNew,WeaSwitch} from 'comsMobx'; const WeaTable = WeaTableNew.WeaTable; const getLabel = WeaLocaleProvider.getLabel; @observer class RelateListDialog extends React.Component { constructor(props) { super(props); this.state={ visible:false } } shouldComponentUpdate(nextProps,nextState){ return true } render() { const {relateListStore} = this.props.contentStore; const {visible,title,handleRelateDialog,tableStore,doSearch,type,modalStyle,visibleDatas,compareVisible} = relateListStore; const columns = [{ title: getLabel(83890,"版本\比较对象"), dataIndex: 'col1', key: 'col1', width:"20%", }, { title: getLabel(22172,"计划工期"), dataIndex: 'col2', key: 'col2', width:"10%", }, { title: getLabel(22169,"计划开始时间"), dataIndex: 'col3', key: 'col3', width:"20%", }, { title: getLabel(22171,"计划结束时间"), dataIndex: 'col4', key: 'col4', width:"20%", }, { title: getLabel(847,"进度"), dataIndex: 'col5', key: 'col5', width:"30%", render: (text,record,index) => {if(index < 3){return
}else{return
}}, }]; return (
{handleRelateDialog(false)}} style={toJS(modalStyle)} > { (type == "request" || type == "doc" || type == "cowork") && {doSearch({name:v})}} /> } { type !== "notice" && } { type == "notice" && this.getNoticeForm() } relateListStore.compareVersion(false)}>{getLabel(309,"关闭")}]} icon="icon-coms-project" iconBgcolor="#217346" onCancel={()=>{relateListStore.compareVersion(false)}} style={{width:'900px', height:'300px'}}>
) } getButtons(){ const {contentStore} = this.props; const {relateListStore} = contentStore; const {type,tableStore,noticeMember,compareVersion } = relateListStore; const {selectedRowKeys} = tableStore; let btnArr = []; { type == "history" && //disabled={!(selectedRowKeys.length>0 && `${toJS(selectedRowKeys)}`)} btnArr.push() } { type == "notice" && btnArr.push() } btnArr.push() return btnArr; } getNoticeForm=()=>{ const {relateListStore} = this.props.contentStore; const {noticeCondition,form} = relateListStore; const {isFormInit} = form; let group = []; isFormInit && toJS(noticeCondition).map((c,i) =>{ let items = []; c.items.map((fields,index) => { items.push({ com:( ), colSpan:1, }) }); group.push() }); return group; } } export default RelateListDialog;