Browse Source

参数调整

luolei 5 years ago
parent
commit
e2acc43b98
2 changed files with 5 additions and 5 deletions
  1. 1 1
      src/modules/HomePage/index.jsx
  2. 4 4
      src/store/async-actions/patInfo.js

+ 1 - 1
src/modules/HomePage/index.jsx

@@ -92,7 +92,7 @@ const mapStateToProps = function (state) {
 const mapDispatchToProps = function (dispatch) {
     return {
       referRecord(){
-        getPreMsg()
+        getPreMsg(dispatch)
       },
       noReferRecord(){
         dispatch({type:SETPRE,show:false});

+ 4 - 4
src/store/async-actions/patInfo.js

@@ -32,10 +32,10 @@ export const getPreMsg = (dispatch, getState) => {
               chief:result.chiefComplaint?new Array(result.chiefComplaint):[],
               current:result.xbs?new Array(result.xbs):[],
               other:result.qts?new Array(result.qts):[],
-              checkBody:result.supplement?new Array(result.supplement):[]
+              checkBody:result.supplement?result.supplement:''
             }
             pushAllDataList(1,'push',preIcss,'preIcss');
-            store.dispatch({type:SETPRE,show:false});
+            dispatch({type:SETPRE,show:false});
         } else {
             console.log(res)
         }
@@ -92,8 +92,8 @@ export const initHistoryDetails = (dispatch) => {
                 if(detail.dataJson){
                   pushAllDataList(detail.sign,'push',detail,'history');
                 }else{
-                  let pre = baseList.homePage.sysConfig.connect_prec
-                  pre&&dispatch({type:SETPRE,show:true});
+                  let pre = baseList.homePage.sysConfig.connect_prec;
+                  (pre==1)&&dispatch({type:SETPRE,show:true});
                 }
                 dispatch({
                   type:ISREAD