|
@@ -63,7 +63,7 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
showTreat(item, index) {
|
|
|
- item.treatIndex = index
|
|
|
+ // item.treatIndex = index
|
|
|
const { showTreat, getTreatResult } = this.props;
|
|
|
getTreatResult && getTreatResult(item);
|
|
|
showTreat && showTreat();
|
|
@@ -92,7 +92,8 @@ class DiagnosticList extends Component {
|
|
|
<span className={style['diag-name']} onClick={()=>{this.handleClickDiag(item)}}>{item.name}<span></span></span>
|
|
|
{item.type === 1 ? <span className={style['diag-first']}>初诊</span> :<span className={style['diag-second']}> 复诊</span>}
|
|
|
<span className={style['treat']}
|
|
|
- style ={{ color: hasTreat ?'' : 'gray', border: hasTreat ?'1px solid #3B9ED0' : '1px solid gray'}}
|
|
|
+ // style ={{ color: hasTreat ?'' : 'gray', border: hasTreat ?'1px solid #3B9ED0' : '1px solid gray', cursor: hasTreat ? '' : 'text'}}
|
|
|
+ style ={hasTreat ? '' : { color: 'gray', border: '1px solid gray', cursor: 'auto'}}
|
|
|
onClick={() =>{hasTreat && this.showTreat(item, index)}}>
|
|
|
治疗方案
|
|
|
</span>
|