浏览代码

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

zhouna 5 年之前
父节点
当前提交
2c9a1dbdaa
共有 1 个文件被更改,包括 4 次插入2 次删除
  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;