|
@@ -39,14 +39,17 @@ class TreatDesc extends Component {
|
|
|
{ otherDrugIndex > -1 && <div className={style['similar-drug']}>
|
|
|
<h3 className={style['drug-desc-title']}>同类药物 <img src={close} onClick={this.hideTreatDesc} className={style['close-drug-desc']} /></h3>
|
|
|
{treatment[otherDrugIndex].medicitionsList.map((item, index) =>{
|
|
|
- return (<span style={item.forbidden === '2' ? {opacity: '0.3', filter:'alpha(opacity=30)'} : ''}>
|
|
|
- {index === 0 ? '' : ', '}
|
|
|
- <span className={style['drug-name']}
|
|
|
- onDoubleClick={() =>{setDrugInfo(item);showDrugInfo();}}
|
|
|
- onClick={()=>{item.forbidden === '2' ? '' : this.handleSelect(otherDrugIndex,index)}}
|
|
|
- style={item.selected ? {color: '#3B9ED0'}:''}>
|
|
|
- {item.medicitionName}
|
|
|
- </span>
|
|
|
+ return (<span style={item.forbidden === '2' ? {opacity: '0.3', filter:'alpha(opacity=30)'} : ''}>
|
|
|
+ {index === 0 ? '' : ', '}
|
|
|
+ <span className={style['drug-name-box']}>
|
|
|
+ <span className={style['drug-name']}
|
|
|
+ onDoubleClick={() =>{setDrugInfo(item);showDrugInfo();}}
|
|
|
+ onClick={()=>{item.forbidden === '2' ? '' : this.handleSelect(otherDrugIndex,index)}}
|
|
|
+ style={item.selected ? {color: '#3B9ED0'}:''}>
|
|
|
+ {item.medicitionName}
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+
|
|
|
{/* {item.showInfo && item.showInfo==='1'&& <img className={style['info-img']} src={info} />} */}
|
|
|
{item.forbidden === '1' ? <span className={style['info-flag']} style={{border: '1px solid #F4C051', background: '#F4C051',marginLeft: '5px'}}>慎用</span>: item.forbidden === '2' ? <span className={style['info-flag']} style={{border: '1px solid #000',marginLeft: '5px'}}>禁用</span> : ''}, 使用率{item.rate}
|
|
|
|