|
@@ -15,7 +15,7 @@ class Treat extends Component {
|
|
|
constructor(props){
|
|
|
super(props);
|
|
|
this.state = {
|
|
|
- zIndex:301
|
|
|
+ zIndex:301,
|
|
|
}
|
|
|
this.hideTreat = this.hideTreat.bind(this);
|
|
|
this.handlePrescription = this.handlePrescription.bind(this);
|
|
@@ -45,20 +45,18 @@ class Treat extends Component {
|
|
|
const { showDrugInfo } = this.props;
|
|
|
showDrugInfo && showDrugInfo();
|
|
|
}
|
|
|
- setTreatBox(idx){
|
|
|
- this.setState({
|
|
|
- zIndex:idx == 300?300 : 500
|
|
|
- })
|
|
|
+ setTreatBox(){
|
|
|
+ $('#treatWrapper').css({'z-index': 302});
|
|
|
+ $('#drugWrapper').css({'z-index': 301});
|
|
|
}
|
|
|
render(){
|
|
|
- const { generalTreat, treatment, treatItem, surgeryTreat, selectDrug, drugInfo, treatDesc, setOtherRecommend, setDrugInfo, showDrug, showDrugInfo,hideDrugInfo, title, drugInfoList, hideDrugInfoMore} = this.props;
|
|
|
- const { setDrugInfoMore } = this.props
|
|
|
- const { zIndex } = this.state
|
|
|
+ const {setDrugInfoMore,treatIndex,treatIndexSet, generalTreat, treatment, treatItem, surgeryTreat, selectDrug, drugInfo, treatDesc, setOtherRecommend, setDrugInfo, showDrug, showDrugInfo,hideDrugInfo, title, drugInfoList, hideDrugInfoMore} = this.props;
|
|
|
+ const { zIndex,show } = this.state
|
|
|
return(
|
|
|
<div className={style['treat-wrapper']}>
|
|
|
<div className={style['treat-mask']} onClick={this.hideTreat}>
|
|
|
</div>
|
|
|
- <div id="treatWrapper" className={style['treat-box']} onselectstart="return false" style={{zIndex:zIndex}}>
|
|
|
+ <div id="treatWrapper" className={style['treat-box']} onselectstart="return false">
|
|
|
<img className={style.close} onClick={this.hideTreat} src={close}/>
|
|
|
<div onMouseDown={this.setTreatBox} id="dragTreatTitle" className={style['treat-title']}>治疗方案 ({treatItem.name})</div>
|
|
|
|
|
@@ -88,7 +86,7 @@ class Treat extends Component {
|
|
|
</TreatDesc>}
|
|
|
</div>
|
|
|
|
|
|
- {showDrug && drugInfo && <DrugInfo setTreatBox={this.setTreatBox} drugInfo = {drugInfo} hideDrugInfo = {hideDrugInfo}></DrugInfo>}
|
|
|
+ {showDrug && drugInfo && <DrugInfo setTreatBox={this.setTreatBox} treatIndexSet={treatIndexSet} drugInfo = {drugInfo} hideDrugInfo = {hideDrugInfo}></DrugInfo>}
|
|
|
{/* 查询多个药品说明书 (添加数据查看药品说明书用)*/}
|
|
|
{/* {showDrug && <DrugInfo drugInfoList = {drugInfoList} hideDrugInfoMore = {hideDrugInfoMore}></DrugInfo>} */}
|
|
|
</div>
|