import { Button } from 'antd';
import {WeaDialog ,WeaNewScroll ,WeaLocaleProvider} from 'ecCom';
import {observer} from "mobx-react";
import _mapValues from 'lodash/mapValues'
import {WeaTableNew} from 'comsMobx';
const WeaTable = WeaTableNew.WeaTable;
const getLabel = WeaLocaleProvider.getLabel;
@observer
class ProjectFieldLogDialog extends React.Component {
constructor(props) {
super(props);
}
shouldComponentUpdate(nextProps,nextState){
return true;
}
render() {
const {title,tableStore,store} = this.props;
const {fieldLogVisible} = store;
return (
{store.setFieldLogVisible(false)}}
style={{width:'700px', height:'400px'}}
>
this.reRenderColumns(c)}
/>
)
}
getButtons(){
const {store} = this.props;
let btnArr = [];
btnArr.push()
return btnArr;
}
reRenderColumns(columns){
const {store} = this.props;
columns.forEach(c=>{
if(c.dataIndex=='id'){
c.render = function(text, record){
return {
store.setField(record.fieldname);
store.setFieldName(record.fieldnamespan);
store.getPrjFieldDetaiLogList({prjid:store.prjid,fieldname:record.fieldname});
store.setFieldDetailLogVisible(true)}
}>{getLabel(82278,'查看该字段所有日志')};
}
}
})
return columns;
}
}
export default ProjectFieldLogDialog;