luolei vor 5 Jahren
Ursprung
Commit
a5dc843027

+ 0 - 1
src/components/AddInspect/index.jsx

@@ -132,7 +132,6 @@ class Inspect extends React.Component {
   }
   handleSearchShow(e) {
     let tmpShow = this.state.show;
-    this.props.handleSomeAction()
     this.setState({ show: !tmpShow, pageTop: getPageCoordinate(e).boxTop })
     // e.stopPropagation();
     setPosition(e,"#searchOption",this.props.setHighter)

+ 3 - 3
src/components/DiagnosticItem/index.jsx

@@ -25,13 +25,13 @@ class DiagnosticItem extends Component{
         this.getTips = this.getTips.bind(this)
     }
     confirm() {
-        this.props.setHighter(10)
+        this.props.setHighter&&this.props.setHighter(10)
         this.close();
         const diagType = 1;
         this.addDiagodal(diagType)
     }
     cancel() {
-        this.props.setHighter(10)
+        this.props.setHighter&&this.props.setHighter(10)
         this.close();
         const diagType = 2;
         this.addDiagodal(diagType)
@@ -74,7 +74,7 @@ class DiagnosticItem extends Component{
          addDiagnostic&&addDiagnostic(item);
          clearInput&&clearInput();
          hideSearch&&hideSearch();
-        this.context.scrollArea.refresh();
+         this.context.scrollArea&&this.context.scrollArea.refresh();
          //document.getElementById("diagnosisResult").scrollIntoView(true)
     }
     handleMouseEnterDrug() {

+ 2 - 6
src/components/EMRContainer/index.jsx

@@ -20,7 +20,6 @@ class EMRContainer extends Component {
         this.$cont = React.createRef();
         this.$div = React.createRef();
         this.setHighter = this.setHighter.bind(this);
-        this.handleSomeAction = this.handleSomeAction.bind(this);
     }
     componentDidMount(){
         // const {initHospital} = this.props;
@@ -38,10 +37,7 @@ class EMRContainer extends Component {
           }
         });
     }
-    handleSomeAction(){
-      console.log(ScrollArea,this.context)
-      // this.context.scrollArea.refresh();
-    }
+
     setHighter(ht){
       // console.log(this.$div.current.scrollHeight);
       if(this.$div.current){
@@ -73,7 +69,7 @@ class EMRContainer extends Component {
                 <div>
                   <CheckBody></CheckBody>
                 </div>
-                <Inspect setHighter={this.setHighter} handleSomeAction={this.handleSomeAction}></Inspect>
+                <Inspect setHighter={this.setHighter}></Inspect>
                 <AssistCheck setHighter={this.setHighter}></AssistCheck>
                 <Diagnosis setHighter={this.setHighter}></Diagnosis>
                 <AdviceContainer></AdviceContainer>

+ 1 - 2
src/components/Inspect/index.jsx

@@ -208,7 +208,7 @@ class Inspect extends React.Component {
 
   }
   render() {
-    const {handleSomeAction,setHighter, fetchPushInfos,getInfomation, hospitalMsg, inspectVal, windowHeight, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList } = this.props;
+    const {setHighter, fetchPushInfos,getInfomation, hospitalMsg, inspectVal, windowHeight, handleCloseExcel, handleChangeValue, labelListActive, list, handleSign, labelList, handleLabelSub, handleClear, handleConfirm, fillActive, changeActivePart, getExcelDataList, delPartItem, inspectList } = this.props;
     const { ieVersion, isIE, hide,importLis } = this.state;
     const { checkSystemIpt, onClose,handleBindFileApi,closeInIcss,showSlideImport } = this;
     if(JSON.stringify(hospitalMsg) != {} && document.getElementById("choose")){//动态绑定只绑定一次
@@ -267,7 +267,6 @@ class Inspect extends React.Component {
             <AddInspect
               handleSign={handleSign}
               setHighter={setHighter}
-              handleSomeAction={handleSomeAction}
               refreshScroller={this.refreshScroller}
               handleChangeValue={handleChangeValue}
               list={list}