Bladeren bron

诊断依据选中

zhouna 4 jaren geleden
bovenliggende
commit
3321d4d5ba
1 gewijzigde bestanden met toevoegingen van 2 en 12 verwijderingen
  1. 2 12
      src/store/actions/diagnosticList.js

+ 2 - 12
src/store/actions/diagnosticList.js

@@ -32,20 +32,10 @@ export const addDiagMsg = (state, action) => {  //选中诊断依据
         }
     }
     tmpLis = [...tmpLis]
-    let obj ={};
     if(isTcm){
-        obj ={
-            "tcmDiag":action.item.name, //中医诊断
-            "tcmSyndrome": '',      //中医症候
-        }
-        res.otherIndex=obj;
+        res.otherIndex=tmpLis[action.idx];
     }else{
-        obj ={
-            "tcmDiag": '',
-            "name": action.item.name,
-            "uniqueName": action.item.uniqueName
-        }
-        res.diseaseName = obj
+        res.diseaseName = tmpLis[action.idx]
     }
     return res;
 }