|
@@ -4,7 +4,6 @@ import style from "./index.less";
|
|
|
import ReactDom from "react-dom";
|
|
|
import logo from "../../common/images/logoa.png";
|
|
|
import bannerDown from "../../common/images/banner-down.png";
|
|
|
-import setup from "../../common/images/setup.png";
|
|
|
import emergIcon from '../../common/images/emergency.png'
|
|
|
import left3 from '../../common/images/left3.png'
|
|
|
import {Notify} from '@commonComp';
|
|
@@ -17,11 +16,9 @@ import {CLEAR_COMSYMPTOMS} from '@store/types/mainSuit';
|
|
|
import { GET_PREC_LIST,SET_PREC_SHOW } from "@store/types/preIcss";
|
|
|
import { CHANGEHOSPITAL } from "@store/types/homePage";
|
|
|
import {getPreMsg} from '@store/async-actions/preIcss';
|
|
|
-import ModeChange from './ModeChange'
|
|
|
import {ConfirmModal} from '@commonComp';
|
|
|
import { embedPush} from '../../store/async-actions/pushMessage'
|
|
|
import { clearMessages } from "../../store/async-actions/print";
|
|
|
-import {debounce} from '../../utils/tools'
|
|
|
import $ from 'jquery';
|
|
|
import store from '@store';
|
|
|
class Banner extends Component {
|
|
@@ -88,13 +85,9 @@ class Banner extends Component {
|
|
|
}
|
|
|
|
|
|
confirmType(){
|
|
|
- const {typeConfig,confirmType,clearCommS,closeConfigModal,readMode} = this.props;
|
|
|
+ const {confirmType,clearCommS,closeConfigModal} = this.props;
|
|
|
// 清空主诉常见症状
|
|
|
clearCommS();
|
|
|
- /*if(mode==typeConfig&&typeConfig==readMode){
|
|
|
- closeConfigModal();
|
|
|
- return;
|
|
|
- }*/
|
|
|
const configs= this.parseConf();
|
|
|
confirmType&&confirmType(configs);
|
|
|
closeConfigModal();
|
|
@@ -195,11 +188,10 @@ class Banner extends Component {
|
|
|
e.stopPropagation()
|
|
|
}
|
|
|
render() {
|
|
|
- const {visible,pre,ifShow,deptName, closeConfigModal,hasMain,hasCurrent,hasOther,preShow,show,hospitalMsg,curHos} = this.props;
|
|
|
- const {emergencyBox,showHos,showM,hosName,hosNameTmp} = this.state;
|
|
|
- const {showConfigModal, changeType, showHospitalLis,showCheckModal,showConnect} = this;
|
|
|
+ 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');
|
|
|
- const disabled = !(hasMain||hasCurrent||hasOther);
|
|
|
return (
|
|
|
<div className={style["logo"]}>
|
|
|
<img src={logo} onClick={this.handleEmbedPush}/>
|
|
@@ -209,10 +201,6 @@ class Banner extends Component {
|
|
|
<img className={`${style["st"]} ${style["his"]}`} src={emergIcon} />
|
|
|
<i>本科室近期全部病历</i>
|
|
|
</div>:''}
|
|
|
- {/* {pre == 1?<div className={style.prec} onClick={()=>preShow(show)}>
|
|
|
- <img className={style["st"]} src={prec} alt="预问诊"/>
|
|
|
- <i> 预问诊信息</i>
|
|
|
- </div>:null} */}
|
|
|
<div className={style["showHospitalLis"]} onClick={showHospitalLis} id="showHospitalLis">
|
|
|
<p className={`${style["selectedHos"]}`}>
|
|
|
<span className={style["ellipsis"]} title={curHos.hosName||hospitalMsg[0].name}>{curHos.hosName||hospitalMsg[0].name}</span>
|