|
@@ -3,14 +3,18 @@ import { connect } from "react-redux";
|
|
|
import style from "./index.less";
|
|
|
import ReactDom from "react-dom";
|
|
|
import logo from "../../common/images/logoa.png";
|
|
|
+import prec from "../../common/images/prec.png";
|
|
|
import setup from "../../common/images/setup.png";
|
|
|
import emergIcon from '../../common/images/emergency.png'
|
|
|
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 {dragBox} from '@utils/drag';
|
|
|
import {CLEAR_COMSYMPTOMS} from '@store/types/mainSuit';
|
|
|
+import { GET_PREC_LIST,SET_PREC_SHOW } from "@store/types/preIcss";
|
|
|
+import {getPreMsg} from '@store/async-actions/preIcss';
|
|
|
import ModeChange from './ModeChange'
|
|
|
|
|
|
class Banner extends Component {
|
|
@@ -103,7 +107,7 @@ class Banner extends Component {
|
|
|
dragBox('previewWrapper','previewStatic','del')
|
|
|
}
|
|
|
render() {
|
|
|
- const {visible,ifShow,deptName, closeConfigModal,hasMain,hasCurrent,hasOther} = this.props;
|
|
|
+ const {visible,ifShow,deptName, closeConfigModal,hasMain,hasCurrent,hasOther,preShow,show} = this.props;
|
|
|
const {emergencyBox} = this.state;
|
|
|
const {showConfigModal, changeType, confirmType} = this;
|
|
|
const domNode = document.getElementById('root');
|
|
@@ -117,9 +121,13 @@ class Banner extends Component {
|
|
|
<img className={`${style["st"]} ${style["his"]}`} src={emergIcon} />
|
|
|
本科室近期全部病历
|
|
|
</div>:''}
|
|
|
+ <div className={style.prec} onClick={()=>preShow(show)}>
|
|
|
+ <img className={style["st"]} src={prec} alt="预问诊"/>
|
|
|
+ <i> 预问诊信息</i>
|
|
|
+ </div>
|
|
|
<div className={style["buon1"]} onClick={showConfigModal}>
|
|
|
<img className={style["st"]} src={setup} />
|
|
|
- 设置
|
|
|
+ <i> 设置</i>
|
|
|
</div>
|
|
|
</div>
|
|
|
{visible&& <ModeChange
|
|
@@ -137,7 +145,7 @@ class Banner extends Component {
|
|
|
</div>
|
|
|
</React.Fragment>
|
|
|
, domNode):''}
|
|
|
-
|
|
|
+ {show?<PreInIcss></PreInIcss>:null}
|
|
|
</div>
|
|
|
);
|
|
|
}
|
|
@@ -148,7 +156,8 @@ const mapStateToProps = function(state){
|
|
|
const {message} = state.patInfo;
|
|
|
return {
|
|
|
ifShow:sysConfig.general_show,
|
|
|
- deptName:message.selfDeptName
|
|
|
+ deptName:message.selfDeptName,
|
|
|
+ show:state.preIcss.preShow
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -162,7 +171,9 @@ const mapDispatchToProps = function(dispatch){
|
|
|
type: CLEAR_COMSYMPTOMS
|
|
|
})
|
|
|
},
|
|
|
+ preShow(show){
|
|
|
+ show?dispatch({type:SET_PREC_SHOW}):getPreMsg()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
-// export default Banner;
|
|
|
export default connect(mapStateToProps,mapDispatchToProps)(Banner);
|