|
@@ -3,17 +3,18 @@ import {connect} from 'react-redux';
|
|
|
|
|
|
import SpreadDrop from '@components/SpreadDrop';
|
|
|
import {SETSELECTED,CLEARSELECTED,CONFIRMSELECTED,SETOTHERCHECKBOX,CHANGEOTHERTEXTLABEL} from '@types/otherHistory';
|
|
|
-import {RESET,SETDROPSHOW,HIDEDROP,CLICKCOUNT,ISREAD,SET_SELECTED_AREA} from '@store/types/homePage.js';
|
|
|
+import {RESET,SETDROPSHOW,HIDEDROP,CLICKCOUNT,ISREAD,SET_SELECTED_AREA,SET_CURRENT_MODULE} from '@store/types/homePage.js';
|
|
|
import {getModules as fetchModules} from '@store/async-actions/fetchModules.js';
|
|
|
import {getCommSymptomPush,getCommSymptoms} from '@store/async-actions/mainSuit.js'
|
|
|
import {GET_BIGDATAPUSH,MIX_CONFIRM,COMM_CONFIRM,CHANGE_LABELVAL} from '@store/types/mainSuit';
|
|
|
import {SETCHECKBOX,CHANGECHECKTEXTLABEL,CHECKCONFIRMSELECTED} from '@types/checkBody';
|
|
|
import {CURRENT_CONFIRM,SETMAINCHECKBOX,CURRENT_TEXT_LABEL,CURRENT_GET_BIGDATAPUSH,SHOW_COMMON_ON_CURRENT} from '@types/currentIll';
|
|
|
-import {billing} from '@store/async-actions/pushMessage';
|
|
|
+import {billing,getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
import {Notify} from '@commonComp';
|
|
|
import {filterArr,didPushParamChange,filterDataArr,getLabelIndex,fullfillText,checkFullfillText,getIds} from '@utils/tools.js';
|
|
|
import config from '@config/index.js';
|
|
|
import {CLEAR_COMSYMPTOMS} from "../store/types/mainSuit";
|
|
|
+import storeGlobal from '@store';
|
|
|
|
|
|
function mapStateToProps(state) {//console.log(state);
|
|
|
const {mainSuit,homePage} = state;
|
|
@@ -508,6 +509,15 @@ function mapDispatchToProps(dispatch,store){
|
|
|
type:SETDROPSHOW,
|
|
|
data:obj
|
|
|
});
|
|
|
+ const storeState = storeGlobal.getState()
|
|
|
+ const {moduleName, moduleObj} = storeState.homePage
|
|
|
+ if(moduleName != moduleObj[obj.ikey[0]]) {
|
|
|
+ dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName: moduleObj[obj.ikey[0]]
|
|
|
+ });
|
|
|
+ dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
let pushDataList = [];
|
|
@@ -540,6 +550,15 @@ function mapDispatchToProps(dispatch,store){
|
|
|
type:SETDROPSHOW,
|
|
|
data:obj
|
|
|
});
|
|
|
+ const storeState = storeGlobal.getState()
|
|
|
+ const {moduleName, moduleObj} = storeState.homePage
|
|
|
+ if(moduleName != moduleObj[obj.ikey[0]]) {
|
|
|
+ dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName: moduleObj[obj.ikey[0]]
|
|
|
+ });
|
|
|
+ dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
}else{
|
|
|
Notify.info(result.msg);
|
|
|
return;
|
|
@@ -552,6 +571,15 @@ function mapDispatchToProps(dispatch,store){
|
|
|
type:SETDROPSHOW,
|
|
|
data:obj
|
|
|
});
|
|
|
+ const storeState = storeGlobal.getState()
|
|
|
+ const {moduleName, moduleObj} = storeState.homePage
|
|
|
+ if(moduleName != moduleObj[obj.ikey[0]]) {
|
|
|
+ dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName: moduleObj[obj.ikey[0]]
|
|
|
+ });
|
|
|
+ dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
dispatch({
|
|
|
type: RESET
|
|
|
});
|