|
@@ -5,7 +5,9 @@ import {OTHERADDLABELITEM} from '@types/otherHistory';
|
|
|
import {ADDLABELITEM} from '@types/checkBody';
|
|
|
import {MAINADDLABELITEM} from '@store/types/mainSuit';
|
|
|
import {CURRENTADDLABELITEM} from '@store/types/currentIll';
|
|
|
-import {HIDE,RESET,CLICKCOUNT,SETADDITEMINIT,ISREAD,SET_SELECTED_AREA} from '@store/types/homePage';
|
|
|
+import {HIDE,RESET,CLICKCOUNT,SETADDITEMINIT,ISREAD,SET_SELECTED_AREA,SET_CURRENT_MODULE} from '@store/types/homePage';
|
|
|
+import store from '@store';
|
|
|
+import {getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
|
|
|
function mapStateToProps(state){
|
|
|
return {
|
|
@@ -61,6 +63,8 @@ function mapDispatchToProps(dispatch){
|
|
|
const {copyId,ikey} = param;
|
|
|
const boxMark = ikey.substr(0,1);
|
|
|
const inx = ikey.split("-")[1];
|
|
|
+ const storeState = store.getState()
|
|
|
+ const {moduleName, moduleObj} = storeState.homePage
|
|
|
//埋点记录
|
|
|
dispatch({
|
|
|
type:CLICKCOUNT,
|
|
@@ -69,6 +73,13 @@ function mapDispatchToProps(dispatch){
|
|
|
num:1
|
|
|
});
|
|
|
dispatch(getCopyData(copyId,inx,boxMark));
|
|
|
+ if(moduleName != moduleObj[ikey[0]]) {
|
|
|
+ dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName: moduleObj[ikey[0]]
|
|
|
+ });
|
|
|
+ dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
},
|
|
|
handleClick(obj){
|
|
|
dispatch({
|