|
@@ -11,6 +11,7 @@ import OperationContainer from '../../containers/OperationContainer'
|
|
|
import style from './index.less';
|
|
|
import AdviceContainer from '../../containers/AdviceContainer';
|
|
|
import InfoTitle from '@components/InfoTitle'
|
|
|
+import ScrollArea from 'react-scrollbar';
|
|
|
import {getWindowInnerHeight,getWindowInnerWidth,windowEventHandler} from '@utils/tools';
|
|
|
|
|
|
class EMRContainer extends Component {
|
|
@@ -18,7 +19,7 @@ class EMRContainer extends Component {
|
|
|
super(props);
|
|
|
this.$cont = React.createRef();
|
|
|
}
|
|
|
- componentDidMount(){
|
|
|
+ /*componentDidMount(){
|
|
|
// const {initHospital} = this.props;
|
|
|
// initHospital()
|
|
|
const height = getWindowInnerHeight() - 175;
|
|
@@ -33,10 +34,16 @@ class EMRContainer extends Component {
|
|
|
this.$cont.current.style.width = width + "px";
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ }*/
|
|
|
render() {
|
|
|
- return <div className={style['EMR-container']} ref={this.$cont} id="addScrollEvent">
|
|
|
- <InfoTitle></InfoTitle>
|
|
|
+ return <div className={style['EMR-container']} id="addScrollEvent">
|
|
|
+ <ScrollArea speed={0.8}
|
|
|
+ ref={this.$cont}
|
|
|
+ horizontal={false}
|
|
|
+ className={style["area"]}
|
|
|
+ verticalContainerStyle={{opacity:'0.5',right:'459px'}}
|
|
|
+ contentClassName="content">
|
|
|
+ <InfoTitle></InfoTitle>
|
|
|
<div className={style['inner']}>
|
|
|
<MainSuit></MainSuit>
|
|
|
<CurrentIll></CurrentIll>
|
|
@@ -50,6 +57,7 @@ class EMRContainer extends Component {
|
|
|
<AdviceContainer></AdviceContainer>
|
|
|
</div>
|
|
|
<OperationContainer></OperationContainer>
|
|
|
+ </ScrollArea>
|
|
|
</div>
|
|
|
}
|
|
|
}
|