|
@@ -69,14 +69,6 @@ class CommonSymptom extends Component{
|
|
|
}
|
|
|
return '';
|
|
|
}
|
|
|
- // 历史症状
|
|
|
- getHisStyle(id){
|
|
|
- const {conceptId} = this.state;
|
|
|
- if(conceptId.includes(id)){
|
|
|
- return style['hisSelect'];
|
|
|
- }
|
|
|
- return style['hisTab'];
|
|
|
- }
|
|
|
handleClear(e){
|
|
|
e.stopPropagation();
|
|
|
this.setState({
|
|
@@ -99,7 +91,7 @@ class CommonSymptom extends Component{
|
|
|
let listBox = $('#listBox')[0];
|
|
|
let hisBox = $('#his')[0];
|
|
|
let operBox = $('#oper')[0];
|
|
|
- if(e.target != itemBox && e.target.parentNode != divBox && e.target.parentNode != listBox && e.target.parentNode != hisBox && e.target.parentNode != operBox && e.target != divBox && e.target.parentNode.parentNode && e.target.parentNode.parentNode != hisBox){
|
|
|
+ if(e.target != itemBox && e.target.parentNode != divBox && e.target.parentNode != listBox && e.target.parentNode != hisBox && e.target.parentNode != operBox && e.target != divBox ){
|
|
|
this.setState({
|
|
|
hide:true,
|
|
|
select:[],
|
|
@@ -124,12 +116,10 @@ class CommonSymptom extends Component{
|
|
|
{mainHis.length>0?<ul className={style["his"]} id="his">
|
|
|
<p>最近输入症状:</p>
|
|
|
{mainHis.map((it)=>{
|
|
|
- return <li onClick={(e)=>this.handleSelect(e,it)} title={it.name.length>5?it.name:''}>
|
|
|
- <span className={this.getHisStyle(it.conceptId)} style={{'padding':it.name.length>5?'0':'0 5px'}}>{it.name.length>5?it.name.slice(0,4)+'...':it.name}</span>
|
|
|
- </li>
|
|
|
+ return <li onClick={(e)=>this.handleSelect(e,it)} className={this.getStyle(it.conceptId)} title={it.name.length>5?it.name:''}>{it.name.length>5?it.name.slice(0,4)+'...':it.name}</li>
|
|
|
})}
|
|
|
</ul>:''}
|
|
|
- <p>常见症状:</p>
|
|
|
+ <p className={style['c-title']}>常见症状:</p>
|
|
|
{data&&data.map((it)=>{
|
|
|
return <li onClick={(e)=>this.handleSelect(e,it)} className={this.getStyle(it.conceptId)} title={it.name.length>5?it.name:''}>{it.name.length>5?it.name.slice(0,4)+'...':it.name}</li>
|
|
|
})}
|