|
@@ -93,14 +93,18 @@ class EmergencyHis extends Component{
|
|
|
handleAdd(){
|
|
|
const {chooseItem,index} = this.state;
|
|
|
const {addSecond,data} = this.props;
|
|
|
- console.log("添加成功")
|
|
|
if(chooseItem.trim()){
|
|
|
// 添加接口
|
|
|
const item = {
|
|
|
name:chooseItem,
|
|
|
id:data[index].inquiryId
|
|
|
}
|
|
|
- addSecond&&addSecond(item)
|
|
|
+ addSecond&&addSecond(item);
|
|
|
+ this.searInp.current.value = "";
|
|
|
+ this.setState({
|
|
|
+ valChange:true,
|
|
|
+ chooseItem:''
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
|