|
@@ -55,13 +55,15 @@ class TreatDesc extends Component {
|
|
{ otherDrugIndex > -1 && <div className={style['similar-drug']}>
|
|
{ otherDrugIndex > -1 && <div className={style['similar-drug']}>
|
|
<h3 className={style['drug-desc-title']}><span className={style['drug-desc-class-title']} title={'同类药物(' + treatment[otherDrugIndex].drugsName + ')'}>同类药物({treatment[otherDrugIndex].drugsName})</span> <img src={close} onClick={this.hideTreatDesc} className={style['close-drug-desc']} /></h3>
|
|
<h3 className={style['drug-desc-title']}><span className={style['drug-desc-class-title']} title={'同类药物(' + treatment[otherDrugIndex].drugsName + ')'}>同类药物({treatment[otherDrugIndex].drugsName})</span> <img src={close} onClick={this.hideTreatDesc} className={style['close-drug-desc']} /></h3>
|
|
{treatment[otherDrugIndex].medicitionsList.map((item, index) =>{
|
|
{treatment[otherDrugIndex].medicitionsList.map((item, index) =>{
|
|
- return (<span style={item.forbidden === '2' ? {opacity: '0.3', filter:'alpha(opacity=30)'} : ''}>
|
|
|
|
|
|
+ return (<span >
|
|
{index === 0 ? '' : ', '}
|
|
{index === 0 ? '' : ', '}
|
|
<span className={style['drug-name-box']}>
|
|
<span className={style['drug-name-box']}>
|
|
<span className={style['drug-name']}
|
|
<span className={style['drug-name']}
|
|
// onDoubleClick={() =>{setDrugInfo(item);showDrugInfo();}}
|
|
// onDoubleClick={() =>{setDrugInfo(item);showDrugInfo();}}
|
|
onClick={()=>{item.forbidden === '2' ? '' : this.handleSelect(otherDrugIndex,index)}}
|
|
onClick={()=>{item.forbidden === '2' ? '' : this.handleSelect(otherDrugIndex,index)}}
|
|
- style={item.selected ? {color: '#3B9ED0'}:''}>
|
|
|
|
|
|
+ style={item.forbidden === '2' ? {opacity: '0.3', filter:'alpha(opacity=30)',filter:'progid:DXImageTransform.Microsoft.Alpha(opacity=30)'} : item.selected ? {color: '#3B9ED0'}:''}
|
|
|
|
+
|
|
|
|
+ >
|
|
{item.medicitionName}
|
|
{item.medicitionName}
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</span>
|
|
@@ -71,7 +73,7 @@ class TreatDesc extends Component {
|
|
onMouseEnter={this.handleMouseEnterImg.bind(this, index)}
|
|
onMouseEnter={this.handleMouseEnterImg.bind(this, index)}
|
|
onMouseLeave = {this.handleMouseLeaveImg}
|
|
onMouseLeave = {this.handleMouseLeaveImg}
|
|
onClick={() =>{setDrugInfo(item);showDrugInfo();}}/>}
|
|
onClick={() =>{setDrugInfo(item);showDrugInfo();}}/>}
|
|
- {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}
|
|
|
|
|
|
+ {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={{opacity: '0.3', filter:'alpha(opacity=30)',filter:'progid:DXImageTransform.Microsoft.Alpha(opacity=30)',border: '1px solid #000',marginLeft: '5px'}}>禁用</span> : ''}, 使用率{item.rate}
|
|
|
|
|
|
</span>)
|
|
</span>)
|
|
})}
|
|
})}
|