|
@@ -1,6 +1,7 @@
|
|
|
import React, { Component } from "react";
|
|
|
import PatInfoContainer from '@containers/PatInfoContainer.js';
|
|
|
import style from "./index.less";
|
|
|
+import { connect } from 'react-redux';
|
|
|
import historyCase from '@common/images/history.png';
|
|
|
import health from '@common/images/health.png'
|
|
|
import store from '@store';
|
|
@@ -17,8 +18,9 @@ class InfoTitle extends Component {
|
|
|
store.dispatch(initItemList());
|
|
|
store.dispatch(showHistory(true))
|
|
|
}
|
|
|
- render() {
|
|
|
- return <div className={style['title-wrapper']} >
|
|
|
+ render() {console.log(store)
|
|
|
+ const {disVisible,copyVisible} = store.getState().copyRight;console.log(disVisible,copyVisible)
|
|
|
+ return <div className={style['title-wrapper']} style={{zIndex:disVisible||copyVisible?40:204}}>
|
|
|
<PatInfoContainer />
|
|
|
<div className={style["operations"]} onClick={this.showHistoryBox}>
|
|
|
<span><img src={historyCase} /> 历史病历</span>
|
|
@@ -30,5 +32,18 @@ class InfoTitle extends Component {
|
|
|
</div>;
|
|
|
}
|
|
|
}
|
|
|
+function mapStateToProps(state) {
|
|
|
+ return {
|
|
|
+ disVisible: state.copyRight.disVisible,
|
|
|
+ copyVisible:state.copyRight.copyVisible
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const InfoTitleCont = connect(
|
|
|
+ mapStateToProps,
|
|
|
+ null
|
|
|
+)(InfoTitle);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-export default InfoTitle;
|
|
|
+export default InfoTitleCont;
|