浏览代码

无主诉时查体不能刷新

zhouna 5 年之前
父节点
当前提交
47e292fc1e
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 2
      src/components/CheckBody/index.jsx
  2. 0 1
      src/containers/CheckBody.js

+ 2 - 2
src/components/CheckBody/index.jsx

@@ -111,10 +111,10 @@ class CheckBody extends Component{
     });
   }
   render(){
-    const {searchData,totalHide,data,saveText,rePush} = this.props;
+    const {searchData,totalHide,data,saveText,rePush,hasMain,isEmpty} = this.props;
     const {boxLeft,boxTop} = this.state;
     return <ItemBox title='查体' handleClick={this.handleClick}>
-        <img className={style['refresh']} src={rePushIcon} onClick={rePush}/>
+        <img className={style['refresh']} src={rePushIcon} title='重新加载' onClick={!hasMain&&isEmpty?null:rePush}/>
         {this.getLabels()}
         {/*{showMoreBtn?more:''}*/}
         {searchData && searchData.length>0?<SearchDrop data={searchData} show={!totalHide} left={boxLeft} top={boxTop} onSelect={this.handleSearchSelect}></SearchDrop>:''}

+ 0 - 1
src/containers/CheckBody.js

@@ -23,7 +23,6 @@ function mapStateToProps(state){
     span:checkBody.span,
     searchInEnd:checkBody.searchInEnd,      //是否在搜索末尾插入结果
     importLabel:checkBody.importLabel,    //需高亮的标签id
-    typeConfig: state.typeConfig
   }
 }