浏览代码

诊断搜索接口修改

zhangxc 6 年之前
父节点
当前提交
102b7557e7
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/components/DiagnosticItem/index.jsx
  2. 1 0
      src/store/actions/diagnosticSearch.js

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

@@ -130,7 +130,7 @@ class DiagnosticItem extends Component{
                           onMouseLeave = {this.handleMouseLeaveDrug.bind(this)}
                           onClick={() =>{this.chooseDiagodal(item)}}
                           >
-                        {item.name} {item.showType === 2 || item.showType === 3 ? '('+ item.retrievalName+')': ''}
+                        {item.name} {item.retrievalName ? '('+ item.retrievalName+')': ''}
                         {type== 'disSelect' &&<img className={style['info-img']}  
                                 style ={hasEnterItem  ? {display: "inline-block"} : {display: "none"}}
                                 src={hasEnterImg ? infoMove : infoShow} 

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

@@ -25,6 +25,7 @@ export const getSearchResult= (state, action) => {
         searchResultItem.name = item.name
         searchResultItem.showType = item.showType
         searchResultItem.retrievalName = item.retrievalName
+        searchResultItem.conceptId = item.conceptId
         searchResult.push(searchResultItem)
     }) 
     res.searchResult = searchResult;