|
@@ -50,7 +50,6 @@ class ChronicInfo extends React.Component{
|
|
|
};
|
|
|
this.$result = React.createRef();
|
|
|
this.$content = React.createRef();
|
|
|
- this.$content = React.createRef();
|
|
|
this.showInfo = this.showInfo.bind(this);
|
|
|
this.closeInfo = this.closeInfo.bind(this);
|
|
|
this.showOption = this.showOption.bind(this);
|
|
@@ -100,6 +99,11 @@ class ChronicInfo extends React.Component{
|
|
|
this.setState({
|
|
|
optionId:id,
|
|
|
formulaId:null //关闭计算公式
|
|
|
+ });
|
|
|
+ const {patDom} = this.props;
|
|
|
+ const ht = $(patDom.current).height();
|
|
|
+ setTimeout(function(){
|
|
|
+ $(patDom.current).scrollTop(ht+200);
|
|
|
})
|
|
|
}
|
|
|
closeOption(){
|
|
@@ -189,6 +193,11 @@ class ChronicInfo extends React.Component{
|
|
|
this.setState({
|
|
|
formulaId:id,
|
|
|
optionId:null //关闭可能结果
|
|
|
+ });
|
|
|
+ const {patDom} = this.props;
|
|
|
+ const ht = $(patDom.current).height();
|
|
|
+ setTimeout(function(){
|
|
|
+ $(patDom.current).scrollTop(ht+200);
|
|
|
})
|
|
|
}
|
|
|
closeFormula(it){
|