瀏覽代碼

解析结果按钮默认隐藏

zhouna 3 年之前
父節點
當前提交
0629f4587e
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/components/InfoTitle/index.jsx

+ 3 - 2
src/components/InfoTitle/index.jsx

@@ -7,7 +7,7 @@ import AnalysisResult from '@components/AnalysisResult';
 import historyCase from '@common/images/history.png';
 import sysResult from '@common/images/result.png';
 import store from '@store';
-import { getEMRParams } from '@utils/tools';
+import { getEMRParams,getUrlArgObject } from '@utils/tools';
 import { showHistory } from '@store/actions/historyTemplates';
 import { initItemList, setInitHistory, getHospitalInfo } from '@store/async-actions/historyTemplates';
 import HistoryCases from '@containers/HistoryCases';
@@ -70,13 +70,14 @@ class InfoTitle extends Component {
     render() {
         const {loading,loadingText,loadingType} = this.props;
         const {resShow,analysisRes}=this.state;
+        const showSysBtn = getUrlArgObject("sysBtn")==='1';
         return <div className={style['title-wrapper']}  style={{paddingRight:'198px'}}>
             <PatInfoContainer />
              {
                 <div className={style['activeWrap']}>
                     <div className={style["operations"]}>
                         <span onClick={this.showHistoryBox}><img src={historyCase} />&nbsp;历史病历</span>
-					    <span onClick={()=>this.showSysBox(true)}><img src={sysResult} />&nbsp;解析结果</span>
+                      {showSysBtn?<span onClick={()=>this.showSysBox(true)}><img src={sysResult} />&nbsp;解析结果</span>:""}
                     </div>
                 </div>
              }