import { WeaNewScroll, WeaSearchGroup, WeaMoreButton, WeaDialog } from 'ecCom' import { Spin, Button, Pagination } from 'antd' import { WeaSwitch, WeaTableNew } from 'comsMobx' import { i18n } from '../public/i18n'; import '../style/common.less'; const WeaTable = WeaTableNew.WeaTable; export default class NewWeaTableDialog extends React.Component { constructor(props) { super(props); this.state = { width: 800, } } reRenderColumns(columns) { let _this = this; columns.forEach((c, index) => { if (c.dataIndex == 'lastname') { c.render = function (text, record) { return { window.open(`/spa/hrm/index_mobx.html#/main/hrm/card/cardInfo/${record.id}`); }}>{text} } }; }) } render() { const { title, visible, onCancel, height, tableStore } = this.props, { width, } = this.state; const buttons = [ () ]; return ( onCancel()} buttons={buttons} style={{ width: width, height: height }} > this.reRenderColumns(c)} hasOrder={true} needScroll={true} /> ) } }