Parcourir la source

修改诊断搜索排除项

zhangxc il y a 6 ans
Parent
commit
a1fdb18d7c
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/store/async-actions/diagnosticSearch.js

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

@@ -14,9 +14,12 @@ export const getSearchList = (val) => {
     return (dispatch, getState) => {
         const state = getState();
         const diagnosticList = state.diagnosticList.diagnosticList
+        console.log('diagnosticList', diagnosticList)
         let noIds = []
         for(let i = 0; i < diagnosticList.length; i++) {
-            noIds.push(diagnosticList[i].id)
+            if(diagnosticList[i].conceptId) {
+                noIds.push(diagnosticList[i].conceptId)
+            }
         }
         json('/retrieval/getTagInfos',{
             type:'7',