|
@@ -1,10 +1,11 @@
|
|
|
import {connect} from 'react-redux';
|
|
|
import CheckBody from '@components/CheckBody';
|
|
|
import {getModule,getInitData,pregetCheckbodyData} from '@store/async-actions/fetchModules.js';
|
|
|
-import {HIDE,RESET,SETDROPSHOW,ISREAD,MODI_LOADING,HIDEDROP} from '@store/types/homePage.js';
|
|
|
+import {HIDE,RESET,SETDROPSHOW,ISREAD,MODI_LOADING,HIDEDROP,SET_CURRENT_MODULE} from '@store/types/homePage.js';
|
|
|
import {SELECTSEARCHDATA,REPUSH_CHECK_LABELS} from "@store/types/checkBody";
|
|
|
-import {billing} from '@store/async-actions/pushMessage';
|
|
|
+import {billing,getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
import {didPushParamChange,filterDataArr} from '@utils/tools.js';
|
|
|
+import store from '@store';
|
|
|
|
|
|
function mapStateToProps(state){
|
|
|
const {homePage,mainSuit,checkBody,diagnosticList} = state;
|
|
@@ -59,7 +60,16 @@ function mapDispatchToProps(dispatch){
|
|
|
});
|
|
|
},
|
|
|
rePush(){
|
|
|
+ const storeState = store.getState()
|
|
|
+ const {moduleName} = storeState.homePage
|
|
|
dispatch(pregetCheckbodyData(false,true));
|
|
|
+ if(moduleName != '查体') {
|
|
|
+ dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName: '查体'
|
|
|
+ });
|
|
|
+ dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
},
|
|
|
hideAllDrop(){
|
|
|
dispatch({
|