|
@@ -46,6 +46,8 @@ class SearchSelect extends Component {
|
|
|
}
|
|
|
handleChange(e,isClear){
|
|
|
const val =e.target.value;
|
|
|
+ console.log(e.target.value);
|
|
|
+
|
|
|
if(isClear||!val){
|
|
|
this.setState({
|
|
|
data:[],
|
|
@@ -59,6 +61,8 @@ class SearchSelect extends Component {
|
|
|
inpVal:val,
|
|
|
});
|
|
|
//搜索
|
|
|
+ console.log(val);
|
|
|
+
|
|
|
this.getDrugWayList(val)
|
|
|
}
|
|
|
//获取药品剂型15,、给药途径16
|
|
@@ -90,7 +94,7 @@ class SearchSelect extends Component {
|
|
|
const {show,data,inpVal} = this.state;
|
|
|
return (
|
|
|
<div className={styles.medType}>
|
|
|
- <input placeholder={title} value={selected} className={styles.inpSearch} onChange={(e)=>this.handleChange(e)} />
|
|
|
+ <input placeholder={title} value={selected} className={styles.inpSearch} onInput={(e)=>this.handleChange(e)} />
|
|
|
<img className={styles.down} src={dowm} alt=""/>
|
|
|
{inpVal?<img className={styles.clear} src={del} alt="清空" onClick={(e)=>this.handleChange(e,true)}/>:''}
|
|
|
{
|