|
@@ -1,6 +1,7 @@
|
|
|
import React, { Component } from 'react';
|
|
|
import style from './index.less';
|
|
|
import del_icon from './img/delete.png'
|
|
|
+import del_on from './img/delete-on.png'
|
|
|
import diagUp from './img/diagUp.png'
|
|
|
import diagDown from './img/diagDown.png'
|
|
|
import printIcon from '@common/images/team.png';
|
|
@@ -33,6 +34,7 @@ class DiagnosticList extends Component {
|
|
|
isAssessConfirm:false,
|
|
|
radioVal:{}, //可能结果选择内容
|
|
|
possible:{}, //可能结果
|
|
|
+ hasOndel: false
|
|
|
}
|
|
|
this.deleteItem = this.deleteItem.bind(this);
|
|
|
this.cancel = this.cancel.bind(this);
|
|
@@ -233,9 +235,19 @@ class DiagnosticList extends Component {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
+ handleEnterDel() {
|
|
|
+ this.setState({
|
|
|
+ hasOndel: true
|
|
|
+ })
|
|
|
+ }
|
|
|
+ handleLeaveDel() {
|
|
|
+ this.setState({
|
|
|
+ hasOndel: false
|
|
|
+ })
|
|
|
+ }
|
|
|
render(){
|
|
|
const { list, treatment, showReferRecord, showHistoryCase ,chronicMagItem} = this.props;
|
|
|
- const { visible, treatTitle ,showAssess, isAssessConfirm, radioVal, possible,assessId,disName} = this.state;
|
|
|
+ const { visible, treatTitle ,showAssess, isAssessConfirm, radioVal, possible,assessId,disName, hasOndel} = this.state;
|
|
|
const chronicList = JSON.parse(localStorage.getItem('chronic')||null);
|
|
|
const chronicLine = chronicMagItem&&chronicMagItem.name; //当前是否走的慢病流程
|
|
|
let isChronic = false; //是否要显示管理评估
|
|
@@ -264,7 +276,7 @@ class DiagnosticList extends Component {
|
|
|
onClick={this.showAssessFn.bind(this,item)}>
|
|
|
管理评估
|
|
|
</span>:''}
|
|
|
- <img className={style['diag-del']} src={del_icon} onClick={()=>{this.handleDeleteItem(item)}}/>
|
|
|
+ <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)}}/>
|
|
|
</div>)
|
|
|
})}
|
|
|
{treatment&&<Treat title={treatTitle}></Treat>}
|