|
@@ -3,14 +3,16 @@ import { connect } from "react-redux";
|
|
import BannerContainer from '@containers/TypeConfigContainer';
|
|
import BannerContainer from '@containers/TypeConfigContainer';
|
|
// 引入组件
|
|
// 引入组件
|
|
import BodyContainer from "@components/BodyContainer";
|
|
import BodyContainer from "@components/BodyContainer";
|
|
|
|
+import {ConfirmModal} from '@commonComp';
|
|
|
|
|
|
-import {HIDEDROP,SETMINSCREEN,SETSYSTEMCONFIG} from '@store/types/homePage.js';
|
|
|
|
|
|
+import {HIDEDROP,SETMINSCREEN,SETSYSTEMCONFIG,SETPRE} from '@store/types/homePage.js';
|
|
import {CLEAR_SEARCH} from '@types/mainSuit';
|
|
import {CLEAR_SEARCH} from '@types/mainSuit';
|
|
import {CURRENT_CLEAR} from '@types/currentIll';
|
|
import {CURRENT_CLEAR} from '@types/currentIll';
|
|
import {OTHERHIS_CLEAR} from '@types/otherHistory';
|
|
import {OTHERHIS_CLEAR} from '@types/otherHistory';
|
|
import {CHECKBODY_CLEAR} from '@types/checkBody';
|
|
import {CHECKBODY_CLEAR} from '@types/checkBody';
|
|
import style from './index.less';
|
|
import style from './index.less';
|
|
import {getInitModules,getChronic,getSystemConfig} from '@store/async-actions/homePage.js';
|
|
import {getInitModules,getChronic,getSystemConfig} from '@store/async-actions/homePage.js';
|
|
|
|
+import {getPreMsg} from '@store/async-actions/patInfo.js';
|
|
import { getUrlArgObject,parseNameVal } from "@utils/tools";
|
|
import { getUrlArgObject,parseNameVal } from "@utils/tools";
|
|
import $ from 'jquery';
|
|
import $ from 'jquery';
|
|
import loading from '@common/images/loading.gif';
|
|
import loading from '@common/images/loading.gif';
|
|
@@ -65,12 +67,15 @@ class HomePage extends Component {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
render() {
|
|
render() {
|
|
- const {flag} = this.props;
|
|
|
|
|
|
+ const {flag,showPre,noReferRecord,referRecord} = this.props;
|
|
return <div className={style['home-page']}
|
|
return <div className={style['home-page']}
|
|
onClick={this.hidePops} onmousedown={this.setElem.bind(this)}>
|
|
onClick={this.hidePops} onmousedown={this.setElem.bind(this)}>
|
|
<BannerContainer />
|
|
<BannerContainer />
|
|
{/* <InfoTitle /> */}
|
|
{/* <InfoTitle /> */}
|
|
<BodyContainer></BodyContainer>
|
|
<BodyContainer></BodyContainer>
|
|
|
|
+ <ConfirmModal visible={showPre} okText='是' cancelText='否' confirm={referRecord} cancel={noReferRecord} close={noReferRecord}>
|
|
|
|
+ <div className={style['confirm-info']}>是否引用预问诊信息?</div>
|
|
|
|
+ </ConfirmModal>
|
|
{flag?<div className={style['mask']}>
|
|
{flag?<div className={style['mask']}>
|
|
<img src={loading} className={style['load']}/>
|
|
<img src={loading} className={style['load']}/>
|
|
</div>:""}
|
|
</div>:""}
|
|
@@ -80,11 +85,18 @@ class HomePage extends Component {
|
|
|
|
|
|
const mapStateToProps = function (state) {
|
|
const mapStateToProps = function (state) {
|
|
return {
|
|
return {
|
|
- flag:state.homePage.loadingFlag
|
|
|
|
|
|
+ flag:state.homePage.loadingFlag,
|
|
|
|
+ showPre:state.homePage.showPre
|
|
}
|
|
}
|
|
};
|
|
};
|
|
const mapDispatchToProps = function (dispatch) {
|
|
const mapDispatchToProps = function (dispatch) {
|
|
return {
|
|
return {
|
|
|
|
+ referRecord(){
|
|
|
|
+ getPreMsg(dispatch)
|
|
|
|
+ },
|
|
|
|
+ noReferRecord(){
|
|
|
|
+ dispatch({type:SETPRE,show:false});
|
|
|
|
+ },
|
|
handleClear(){//清空搜索结果
|
|
handleClear(){//清空搜索结果
|
|
dispatch({type:CLEAR_SEARCH});
|
|
dispatch({type:CLEAR_SEARCH});
|
|
dispatch({type:CURRENT_CLEAR});
|
|
dispatch({type:CURRENT_CLEAR});
|