Browse Source

慢病流程选中后滚动到顶部

zhouna 5 years ago
parent
commit
2c9a1dbdaa
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/components/DiagnosticList/index.jsx

+ 4 - 2
src/components/DiagnosticList/index.jsx

@@ -128,10 +128,12 @@ class DiagnosticList extends Component {
         })
     }
     noReferRecord() {
-        const { hideReferRecord ,autoFillModules} = this.props;
+        const { hideReferRecord ,autoFillModules,refreshScroller} = this.props;
         hideReferRecord && hideReferRecord();
         autoFillModules&&autoFillModules();
-
+        setTimeout(function(){
+          refreshScroller()&&refreshScroller().scrollTop();
+        },100)
     }
     referCase() {//确定
         const { hideHistoryCaseModal, items ,autoFillModules,typeConfig} = this.props;