Kaynağa Gözat

添加中医症候调推送

zhouna 4 yıl önce
ebeveyn
işleme
1147703b0f

+ 2 - 2
src/components/DiagnosticItem/index.jsx

@@ -8,7 +8,7 @@ import infoMove from '@common/images/info-move.png';
 import {getChronic} from '@store/async-actions/homePage.js';
 import {storageLocal} from '@utils/tools';
 import {
-    getMRAnalyse
+    embedPush
   } from '@store/async-actions/pushMessage';
 
 class DiagnosticItem extends Component{
@@ -93,7 +93,7 @@ class DiagnosticItem extends Component{
                EMRScrollCont.scrollYTo(scrollTop);
             })
          }
-         store.dispatch(getMRAnalyse())
+        showSym&&store.dispatch(embedPush({}))
 
     }
     handleMouseEnterDrug() {

+ 1 - 3
src/store/actions/diagnosticList.js

@@ -52,7 +52,7 @@ export const addDiagMsg = (state, action) => {  //选中诊断依据
 
 export const addTcmDiagnostic = (state, action) => {
     const res = JSON.parse(JSON.stringify(state));
-    console.log('addTcmDiagnostic',action)
+    //console.log('addTcmDiagnostic',action)
     const { isSym } = action;
     let obj=null;
     //如果上一个诊断和症候不全,则不添加新行
@@ -82,7 +82,6 @@ export const addTcmDiagnostic = (state, action) => {
             res.tcmList.push(obj);
         }
     }
-    //console.log(res)
     return res;
 }
 
@@ -97,7 +96,6 @@ export const addDiagnostic = (state, action) => {
             ++num
         }
     }
-    console.log(num,tmpLis.length)
     if(num == tmpLis.length){
         tmpLis[0]['hasTreat'] = 1
         let obj  = {

+ 1 - 1
src/store/async-actions/diagnosticSearch.js

@@ -7,7 +7,7 @@ import store from '@store';
 
 export const getSearchList = (val,flag) => {
     const state = store.getState();
-    console.log(state)
+    //console.log(state)
     const showTcm = state.diagnosticSearch.showTcm;
     const showSym = state.diagnosticSearch.showSym;
     if(val.trim() == ''){