|
@@ -148,12 +148,9 @@ function dataClick(param){
|
|
|
getGraph(data.label,select_type);
|
|
|
|
|
|
}else {
|
|
|
- if(data.type != "疾病"){
|
|
|
- $(".radioList").hide()
|
|
|
- }else{
|
|
|
- $(".radioList").show()
|
|
|
- }
|
|
|
+
|
|
|
if(data.type == "疾病"){
|
|
|
+ $(".radioList").show()
|
|
|
select_type_noSearch = data.type
|
|
|
select_type = data.type
|
|
|
$('.selectedName').html(select_type)
|
|
@@ -166,6 +163,7 @@ function dataClick(param){
|
|
|
getTree(1,1,data.label);
|
|
|
getGraph(data.label,select_type);
|
|
|
}else if(data.type == "药品通用名"){
|
|
|
+ $(".radioList").hide()
|
|
|
select_type_noSearch = data.type
|
|
|
select_type = data.type
|
|
|
$('.selectedName').html("药品")
|
|
@@ -288,10 +286,33 @@ function getNode(val, type){
|
|
|
$(".tabNameList").show()
|
|
|
$(".tabNameList li").click(function(){
|
|
|
const txt = $(this).text()
|
|
|
+ const clientHei = $(window).height()
|
|
|
+ const contentHei = clientHei - 80
|
|
|
$(".tabNameList").hide()
|
|
|
-
|
|
|
+ if(select_type_noSearch != select_type){
|
|
|
+ select_type = select_type_noSearch
|
|
|
+
|
|
|
+ if(select_type == '疾病'){
|
|
|
+ $(".radioList").show()
|
|
|
+ $(".activeTab").removeClass("activeTab")
|
|
|
+ $(".diagnose").addClass("activeTab")
|
|
|
+ $(".ztree").css("height",contentHei-80-43-60-20+'px')
|
|
|
+ // $('#searchInp').val("高血压3级")
|
|
|
+ $('.iconRadio').attr('src','/images/radioUnSelect.png')
|
|
|
+ $('.ICD10 img').attr('src','/images/radioSelect.png')
|
|
|
+ getTree(1,1,txt);
|
|
|
+ }else if(select_type == '药品通用名'){
|
|
|
+ $(".radioList").hide()
|
|
|
+ $(".ztree").css("height",contentHei-80-43-20+'px')
|
|
|
+ $(".activeTab").removeClass("activeTab")
|
|
|
+ $(".drug").addClass("activeTab")
|
|
|
+ getTree(0,2,txt);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ updateTree(txt)
|
|
|
+ }
|
|
|
getGraph(txt,select_type)
|
|
|
- updateTree(txt)
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
})
|