|
@@ -128,22 +128,19 @@ function getNode(val, type){
|
|
|
$(".tabNameList").hide()
|
|
|
if(select_type_noSearch != select_type){
|
|
|
select_type = select_type_noSearch
|
|
|
-
|
|
|
+ let renderInfo = getTab(select_type)
|
|
|
+ renderTab(renderInfo)
|
|
|
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')
|
|
|
+ setTabBottomHei(1)
|
|
|
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);
|
|
|
+ setTabBottomHei(2)
|
|
|
}
|
|
|
}else{
|
|
|
updateTree(txt)
|
|
@@ -201,6 +198,7 @@ function getSchema(val, type){
|
|
|
$('#searchInp').val(val)
|
|
|
if(res.data.data.length >0){
|
|
|
window.refreshTree = true
|
|
|
+ window.schemaTxt = val
|
|
|
drawSchema(res.data.data)
|
|
|
|
|
|
}else{
|
|
@@ -310,6 +308,9 @@ function getSchema(val, type){
|
|
|
}
|
|
|
]
|
|
|
})
|
|
|
+ $(window).resize(function(){
|
|
|
+ myChart.resize();
|
|
|
+ })
|
|
|
myChart.setOption(option);
|
|
|
}
|
|
|
|
|
@@ -397,9 +398,9 @@ function bindTabClick(){
|
|
|
if(id != select_type){
|
|
|
if(id != "疾病"){
|
|
|
$(".radioList").hide()
|
|
|
- $(".ztree").css("height",contentHei-80-43-20+'px')
|
|
|
+ setTabBottomHei(2)
|
|
|
}else{
|
|
|
- $(".ztree").css("height",contentHei-80-43-60-20+'px')
|
|
|
+ setTabBottomHei(1)
|
|
|
$(".radioList").show()
|
|
|
}
|
|
|
select_type_noSearch = id
|
|
@@ -426,26 +427,26 @@ function bindTabClick(){
|
|
|
|
|
|
|
|
|
}else if(id=="药品通用名"){
|
|
|
- $('#searchInp').val("氟康唑注射液")
|
|
|
- getTree(0,2,"丹参片");
|
|
|
- getSchema("丹参片",select_type);
|
|
|
+ $('#searchInp').val("地高辛(XC01AAD072A001010100372)")
|
|
|
+ getTree(0,2,"地高辛(XC01AAD072A001010100372)");
|
|
|
+ getSchema("地高辛(XC01AAD072A001010100372)",select_type);
|
|
|
|
|
|
}else if(id == "症状"){
|
|
|
- $('#searchInp').val("")
|
|
|
- getTree(0,3,"");
|
|
|
- getSchema("",select_type);
|
|
|
+ $('#searchInp').val("背痛")
|
|
|
+ getTree(0,3,"背痛");
|
|
|
+ getSchema("背痛",select_type);
|
|
|
}else if(id == "手术和操作"){
|
|
|
- $('#searchInp').val("")
|
|
|
- getTree(0,4,"");
|
|
|
- getSchema("",select_type);
|
|
|
+ $('#searchInp').val("动脉缝合术")
|
|
|
+ getTree(0,4,"动脉缝合术");
|
|
|
+ getSchema("动脉缝合术",select_type);
|
|
|
}else if(id == "实验室检查"){
|
|
|
- $('#searchInp').val("")
|
|
|
- getTree(0,5,"");
|
|
|
- getSchema("",select_type);
|
|
|
+ $('#searchInp').val("白细胞计数(WBC)")
|
|
|
+ getTree(0,5,"白细胞计数(WBC)");
|
|
|
+ getSchema("白细胞计数(WBC)",select_type);
|
|
|
}else if(id == "辅助检查"){
|
|
|
- $('#searchInp').val("")
|
|
|
- getTree(0,6,"");
|
|
|
- getSchema("",select_type);
|
|
|
+ $('#searchInp').val("肝彩超")
|
|
|
+ getTree(0,6,"肝彩超");
|
|
|
+ getSchema("肝彩超",select_type);
|
|
|
}
|
|
|
// getTree(1,1,""); //切换tab重新画菜单树
|
|
|
}
|
|
@@ -453,12 +454,30 @@ function bindTabClick(){
|
|
|
hideHideTab()
|
|
|
})
|
|
|
}
|
|
|
+function setTabBottomHei(type){
|
|
|
+ const clientHei = $(window).height()
|
|
|
+ const contentHei = clientHei - 80
|
|
|
+ if(type==1){
|
|
|
+ $(".tabBottom").css({
|
|
|
+ 'margin': '0px 0px 0px 0px'
|
|
|
+ })
|
|
|
+ $(".tabBottom").css("height",contentHei-80-43-10+'px')
|
|
|
+ $(".ztree").css("height",contentHei-80-43-60-20-24+'px')
|
|
|
|
|
|
+ }else if(type == 2){
|
|
|
+ $(".tabBottom").css("height",contentHei-80-43-10-20+'px')
|
|
|
+ $(".tabBottom").css({
|
|
|
+ 'margin': '20px 0px 0px 0px'
|
|
|
+ })
|
|
|
+ $(".ztree").css("height",contentHei-80-43-20-20-20+'px')
|
|
|
+ }
|
|
|
+ }
|
|
|
module.exports ={
|
|
|
getSchema,
|
|
|
getTree,
|
|
|
updateTree,
|
|
|
getNode,
|
|
|
getTab,
|
|
|
- renderTab
|
|
|
+ renderTab,
|
|
|
+ setTabBottomHei
|
|
|
}
|