|
@@ -34,7 +34,8 @@ class DiagnosticList extends Component {
|
|
|
isAssessConfirm:false,
|
|
|
radioVal:{}, //可能结果选择内容
|
|
|
possible:{}, //可能结果
|
|
|
- hasOndel: false
|
|
|
+ hasOndel: false,
|
|
|
+ hasOnIndex: -1
|
|
|
}
|
|
|
this.deleteItem = this.deleteItem.bind(this);
|
|
|
this.cancel = this.cancel.bind(this);
|
|
@@ -237,19 +238,21 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- handleEnterDel() {
|
|
|
+ handleEnterDel(index) {
|
|
|
this.setState({
|
|
|
+ hasOnIndex: index,
|
|
|
hasOndel: true
|
|
|
})
|
|
|
}
|
|
|
handleLeaveDel() {
|
|
|
this.setState({
|
|
|
+ hasOnIndex: -1,
|
|
|
hasOndel: false
|
|
|
})
|
|
|
}
|
|
|
render(){
|
|
|
const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem,loading} = this.props;
|
|
|
- const { visible, treatTitle ,showAssess, isAssessConfirm, radioVal, possible,assessId,disName, hasOndel} = this.state;
|
|
|
+ const { visible, treatTitle ,showAssess, isAssessConfirm, radioVal, possible,assessId,disName, hasOndel, hasOnIndex} = this.state;
|
|
|
const chronicList = JSON.parse(localStorage.getItem('chronic')||null);
|
|
|
const chronicLine = chronicMagItem&&chronicMagItem.name; //当前是否走的慢病流程
|
|
|
let isChronic = false; //是否要显示管理评估
|
|
@@ -278,7 +281,7 @@ class DiagnosticList extends Component {
|
|
|
onClick={this.showAssessFn.bind(this,item)}>
|
|
|
管理评估
|
|
|
</span>:''}
|
|
|
- <img className={style['diag-del']} src={hasOndel ? del_on : del_icon} onMouseEnter={this.handleEnterDel.bind(this)} onMouseLeave={this.handleLeaveDel.bind(this)} onClick={()=>{this.handleDeleteItem(item)}}/>
|
|
|
+ <img className={style['diag-del']} src={hasOnIndex == index ? hasOndel ? del_on : del_icon : del_icon} onMouseEnter={this.handleEnterDel.bind(this,index)} onMouseLeave={this.handleLeaveDel.bind(this)} onClick={()=>{this.handleDeleteItem(item)}}/>
|
|
|
</div>)
|
|
|
})}
|
|
|
{treatment&&<Treat title={treatTitle}></Treat>}
|