|
@@ -16,7 +16,9 @@ import {CLEAR_COMSYMPTOMS} from '@store/types/mainSuit';
|
|
import { GET_PREC_LIST,SET_PREC_SHOW } from "@store/types/preIcss";
|
|
import { GET_PREC_LIST,SET_PREC_SHOW } from "@store/types/preIcss";
|
|
import {getPreMsg} from '@store/async-actions/preIcss';
|
|
import {getPreMsg} from '@store/async-actions/preIcss';
|
|
import ModeChange from './ModeChange'
|
|
import ModeChange from './ModeChange'
|
|
-
|
|
|
|
|
|
+import { embedPush} from '../../store/async-actions/pushMessage'
|
|
|
|
+import {debounce} from '../../utils/tools'
|
|
|
|
+import store from '@store';
|
|
class Banner extends Component {
|
|
class Banner extends Component {
|
|
constructor(props){
|
|
constructor(props){
|
|
super(props);
|
|
super(props);
|
|
@@ -35,6 +37,7 @@ class Banner extends Component {
|
|
this.showHisModal = this.showHisModal.bind(this);
|
|
this.showHisModal = this.showHisModal.bind(this);
|
|
this.handleHisClose = this.handleHisClose.bind(this);
|
|
this.handleHisClose = this.handleHisClose.bind(this);
|
|
this.setInitConfig = this.setInitConfig.bind(this);
|
|
this.setInitConfig = this.setInitConfig.bind(this);
|
|
|
|
+ this.handleEmbedPush = this.handleEmbedPush.bind(this);
|
|
}
|
|
}
|
|
|
|
|
|
showConfigModal(){
|
|
showConfigModal(){
|
|
@@ -106,6 +109,16 @@ class Banner extends Component {
|
|
});
|
|
});
|
|
dragBox('previewWrapper','previewStatic','del')
|
|
dragBox('previewWrapper','previewStatic','del')
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 处理点击的默认推送
|
|
|
|
+ handleEmbedPush(){
|
|
|
|
+ store.dispatch(embedPush({
|
|
|
|
+ action: "patientia",
|
|
|
|
+ mode: 1
|
|
|
|
+ }))
|
|
|
|
+ }
|
|
|
|
+
|
|
render() {
|
|
render() {
|
|
const {visible,pre,ifShow,deptName, closeConfigModal,hasMain,hasCurrent,hasOther,preShow,show} = this.props;
|
|
const {visible,pre,ifShow,deptName, closeConfigModal,hasMain,hasCurrent,hasOther,preShow,show} = this.props;
|
|
const {emergencyBox} = this.state;
|
|
const {emergencyBox} = this.state;
|
|
@@ -113,7 +126,7 @@ class Banner extends Component {
|
|
const domNode = document.getElementById('root');
|
|
const domNode = document.getElementById('root');
|
|
const disabled = !(hasMain||hasCurrent||hasOther);
|
|
const disabled = !(hasMain||hasCurrent||hasOther);
|
|
return (
|
|
return (
|
|
- <div className={style["logo"]} >
|
|
|
|
|
|
+ <div className={style["logo"]} onClick={this.handleEmbedPush}>
|
|
<img src={logo} />
|
|
<img src={logo} />
|
|
<span className={style["logo-name"]}>| 智能辅助临床决策系统</span>
|
|
<span className={style["logo-name"]}>| 智能辅助临床决策系统</span>
|
|
<div className={style["buon"]}>
|
|
<div className={style["buon"]}>
|