Sfoglia il codice sorgente

修改治疗方案同类药物

zhangxc 6 anni fa
parent
commit
99789b23f0

+ 2 - 2
src/components/TreatDesc/index.jsx

@@ -27,7 +27,7 @@ class TreatDesc extends Component {
         const { title, basic, otherDrugIndex, drugDesc} = treatDesc
         return (treatment && treatment.length >0 && <div  className={style['treat-desc-box']}>
             
-            {title && title === '药品推荐' ? <div>
+            {title && title === '药品推荐' ? <div id='treatDescBox'>
                 {/* { basic && basic.length > 0 && <div> //推荐依据不需要展示
                     <h3 className={style['recommend-title']}>推荐依据</h3>
                     {basic.map((item, index) =>{
@@ -36,7 +36,7 @@ class TreatDesc extends Component {
                     })}
                     
                 </div> } */}
-                { otherDrugIndex > -1 && <div id='treatDescBox' className={style['similar-drug']}>
+                { 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)'} : ''}>

+ 0 - 1
src/components/TreatDesc/index.less

@@ -37,7 +37,6 @@
     padding-top: 40px;
     overflow-y: auto;
     width: 260px;
-    display: none;
     left: 680px;
     height: 100%;
     top: 0;