import {Form, Input, Button, } from 'antd'; import {WeaDialog, WeaSearchGroup, WeaInput,WeaAuth ,WeaTab,WeaTools,WeaNewScroll,WeaRightMenu,WeaLocaleProvider} from 'ecCom'; import {inject, observer} from "mobx-react"; import {toJS} from 'mobx'; import _mapValues from 'lodash/mapValues' import {WeaTableNew} from 'comsMobx'; const WeaTable = WeaTableNew.WeaTable; const getLabel = WeaLocaleProvider.getLabel; @observer class ModifyLogDialog extends React.Component { constructor(props) { super(props); this.state={ visible:false } } shouldComponentUpdate(nextProps,nextState){ return true } render() { const {title,tableStore} = this.props; const {visible} = this.state; return (
{this.setVisible(false)}} style={{width:'700px', height:'400px'}} > this.reRenderColumns(c)} />
) } getButtons(){ let btnArr = []; btnArr.push() return btnArr; } setVisible=(bool)=>{ this.setState({visible:bool}); } reRenderColumns(columns){ const {store} = this.props; columns.forEach(c=>{ if(c.dataIndex=='id'){ c.render = function(text, record){ if(record.logtype=='m'){ return {store.getPrjFieldLogList({prjid:store.prjid,logid:record.id});store.setFieldLogVisible(true)}}>{getLabel(506390,'点击查看详情')}; }else{ return ''; } } } }) return columns; } } export default ModifyLogDialog;