瀏覽代碼

隐藏logo

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

+ 4 - 3
src/components/Banner/index.jsx

@@ -10,7 +10,7 @@ import {Notify} from '@commonComp';
 import Emergency from '@containers/Emergency';
 import PreInIcss from '@containers/PreInIcss';
 import {getAllHis} from '@store/async-actions/fetchModules.js';
-import {timestampToTime,getCurrentDate} from '@utils/tools.js';
+import {timestampToTime,getCurrentDate,getUrlArgObject} from '@utils/tools.js';
 import {dragBox} from '@utils/drag';
 import {CLEAR_COMSYMPTOMS} from '@store/types/mainSuit';
 import { GET_PREC_LIST,SET_PREC_SHOW } from "@store/types/preIcss";
@@ -188,14 +188,15 @@ class Banner extends Component {
     e.stopPropagation()
   }
   render() {
+    const hideLg  = getUrlArgObject("hideLg");
     const {ifShow,deptName,show,hospitalMsg,curHos} = this.props;
     const {emergencyBox,showHos,showM,hosNameTmp} = this.state;
     const { showHospitalLis,showCheckModal,showConnect} = this;
     const domNode = document.getElementById('root');
     return (
       <div className={style["logo"]}>
-        <img src={logo} onClick={this.handleEmbedPush}/>
-        <span className={style["logo-name"]} onClick={this.handleEmbedPush}>|&nbsp;&nbsp;智能辅助临床决策系统</span>
+          {hideLg?'':<img src={logo} onClick={this.handleEmbedPush}/>}
+        <span className={style["logo-name"]} onClick={this.handleEmbedPush}>{hideLg?'':`|`}&nbsp;&nbsp;智能辅助临床决策系统</span>
         <div className={style["buon"]}>
           {ifShow==1&&deptName=='急诊科'?<div className={`${style["buon1"]} ${style["buon2"]}`} onClick={this.showHisModal}>
                       <img className={`${style["st"]} ${style["his"]}`} src={emergIcon} />