소스 검색

修改诊断搜索排除项

zhangxc 6 년 전
부모
커밋
a1fdb18d7c
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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',