|
@@ -26,12 +26,10 @@ function modulesParseJson(data){
|
|
|
return {json,saveTextJson,moduleName};
|
|
|
}
|
|
|
|
|
|
-// export const getInitModules= (dispatch,getStore)=>{
|
|
|
-// const state = getStore();
|
|
|
-// const {message} = state.patInfo;
|
|
|
-export const getInitModules= (chronicId)=>{
|
|
|
- const {patInfo} = store.getState();
|
|
|
- const {message} = patInfo;
|
|
|
+export const getInitModules= (dispatch,getStore)=>{
|
|
|
+ const state = getStore();
|
|
|
+ const {message} = state.patInfo;
|
|
|
+ const chronicId = '';//诊断为慢病复诊时储存慢病信息到store
|
|
|
const param = {
|
|
|
age:message.patientAge,
|
|
|
sexType:message.sex,
|