zhangxc 5 years ago
parent
commit
21d58e805e
1 changed files with 18 additions and 4 deletions
  1. 18 4
      src/js/schemaMap.js

+ 18 - 4
src/js/schemaMap.js

@@ -122,20 +122,34 @@ function getNode(val, type){
                 const clientHei = $(window).height()
                 const contentHei = clientHei - 80
                 $(".tabNameList").hide()
+                console.log('select_type',select_type,'select_type_noSearch',select_type_noSearch)
                 if(select_type_noSearch != select_type){
                     select_type = select_type_noSearch
                     let renderInfo = getTab(select_type) 
                     renderTab(renderInfo)
                     if(select_type == '疾病'){
-                        $(".radioList").show()
+                       
                         // $('#searchInp').val("高血压3级")
+                        getTree(1,1,txt);
+                    }else if(select_type == '药品通用名'){
+                        
+                        getTree(0,2,txt);
+                    }else if(select_type == '症状'){
+                        getTree(0,3,txt);
+                    }else if(select_type == '手术和操作'){
+                        getTree(0,4,txt);
+                    }else if(select_type == '实验室检查'){
+                        getTree(0,5,txt);
+                    }else if(select_type == '辅助检查'){
+                        getTree(0,6,txt);
+                    }
+                    if(select_type == '疾病'){
+                        $(".radioList").show()
                         $('.iconRadio').attr('src','/images/radioUnSelect.png')
                         $('.ICD10 img').attr('src','/images/radioSelect.png')
                         setTabBottomHei(1)
-                        getTree(1,1,txt);
-                    }else if(select_type == '药品通用名'){
+                    }else{
                         $(".radioList").hide()
-                        getTree(0,2,txt);
                         setTabBottomHei(2)
                     }
                 }else{