|
@@ -64,9 +64,8 @@ class DiagnosticItem extends Component{
|
|
|
getTips && getTips({id:item.id,type:7,name: item.name, position: 1});
|
|
|
}
|
|
|
addDiagodal(diagType){
|
|
|
- const {item, isChronicMag,mode} = this.props;
|
|
|
+ const {item, isChronicMag,mode,EMRScrollCont,type,addDiagnostic, clearInput, hideSearch} = this.props;
|
|
|
item.type = diagType;
|
|
|
- const { addDiagnostic, clearInput, hideSearch } = this.props;
|
|
|
|
|
|
if(item.type == 2&&mode=='0') { //文本模式不走慢病
|
|
|
isChronicMag(item);
|
|
@@ -76,6 +75,12 @@ class DiagnosticItem extends Component{
|
|
|
hideSearch&&hideSearch();
|
|
|
this.context.scrollArea&&this.context.scrollArea.refresh();
|
|
|
//document.getElementById("diagnosisResult").scrollIntoView(true)
|
|
|
+ if(type == 'disSelect') {
|
|
|
+ const scrollTop = document.getElementById("diagnosisResult").offsetTop
|
|
|
+ setTimeout(() =>{
|
|
|
+ EMRScrollCont.scrollYTo(scrollTop);
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
handleMouseEnterDrug() {
|
|
|
this.setState({
|