import React,{Component} from "react"; import {Input, Modal} from "antd"; class OperationTips extends Component{ constructor(props) { super(props); this.state={ reasonsTransfer:'' } } render() { return ( { this.props.onOk(this.state.reasonsTransfer); }} onCancel={()=>{ this.props.onCancel(); }} > 确定要操作以下客户吗? { this.props.selectedRows.map((value,index)=>(
{value.userName}
)) }
操作原因: { this.setState({reasonsTransfer : e.target.value }); }} />
); } } export default OperationTips;