|
@@ -119,44 +119,45 @@ function getNode(val, type){
|
|
|
$(".tabNameList").show()
|
|
|
$(".tabNameList li").click(function(){
|
|
|
const txt = $(this).text()
|
|
|
- $('#searchInp').val(txt)
|
|
|
+ if(txt !="暂无符合数据"){
|
|
|
+ $('#searchInp').val(txt)
|
|
|
+ }
|
|
|
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 == '疾病'){
|
|
|
-
|
|
|
- // $('#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)
|
|
|
- }else{
|
|
|
- $(".radioList").hide()
|
|
|
- setTabBottomHei(2)
|
|
|
+ getSchema(val,select_type_noSearch).then(()=>{
|
|
|
+ if(!window.refreshTree){
|
|
|
+ return
|
|
|
}
|
|
|
- }else{
|
|
|
- updateTree(txt)
|
|
|
- }
|
|
|
- getSchema(txt,select_type)
|
|
|
+ select_type = select_type_noSearch
|
|
|
+
|
|
|
+ if(select_type == '疾病'){
|
|
|
+ // $('#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 == '疾病'){
|
|
|
+ $('.iconRadio').attr('src','/images/radioUnSelect.png')
|
|
|
+ $('.ICD10 img').attr('src','/images/radioSelect.png')
|
|
|
+ $(".radioList").show()
|
|
|
+ setTabBottomHei(1)
|
|
|
+ }else{
|
|
|
+ $(".radioList").hide()
|
|
|
+ setTabBottomHei(2)
|
|
|
+ }
|
|
|
+ let renderTabInfo = getTab("疾病")
|
|
|
+ renderTab(renderTabInfo)
|
|
|
+
|
|
|
+ })
|
|
|
|
|
|
|
|
|
|