/* * Author: 黎永顺 * name: 外部人员添加弹框 * Description: * Date: 2023/3/14 */ import React, { Component } from "react"; import { WeaBrowser, WeaDialog, WeaFormItem, WeaSearchGroup } from "ecCom"; import { Button, Modal } from "antd"; class Index extends Component { constructor(props) { super(props); this.state = { targetIds: "", targetNames: "" }; } handleExternalPersonSave = () => { const { targetIds } = this.state; const { onExternalPersonSave } = this.props; if (!_.isEmpty(targetIds)) { onExternalPersonSave({ targetIds: targetIds.split(",") }); } else { Modal.warning({ title: "信息确认", content: "必要信息不完整,红色*为必填项!" }); } }; render() { const { targetIds, targetNames } = this.state; const { onCancel, visible, loading } = this.props; const buttons = [ , ]; return ( this.setState({ targetIds, targetNames })} /> ); } } export default Index;