|
@@ -66,11 +66,14 @@ $("#searchInp").bind("input propertychange",function(event){
|
|
|
|
|
|
|
|
|
//搜索
|
|
|
-$('#searchBtn').click(function(){
|
|
|
+$('#searchBtn').click(function(e){
|
|
|
+ e.stopPropagation()
|
|
|
const val = $('#searchInp').val()
|
|
|
if(val){
|
|
|
getGraph(val,'diagnose')
|
|
|
updateTree(val)
|
|
|
+ }else{
|
|
|
+ $('.tabNameListNoSearch').show()
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -93,7 +96,8 @@ $('.tabList .tab').click(function(){
|
|
|
$('html').click(function(){
|
|
|
const selectListShow = $('.selectList').css('display')
|
|
|
const tabNameListShow = $('.tabNameList').css('display')
|
|
|
-
|
|
|
+ const tabNameListNoSearchShow = $('.tabNameListNoSearch').css('display')
|
|
|
+
|
|
|
if(selectListShow == 'block'){
|
|
|
$('.selectList').hide()
|
|
|
$('.iconSlide').attr('src','./images/iconSlideDown.png')
|
|
@@ -101,6 +105,9 @@ $('html').click(function(){
|
|
|
if(tabNameListShow == 'block'){
|
|
|
$('.tabNameList').hide()
|
|
|
}
|
|
|
+ if(tabNameListNoSearchShow == 'block'){
|
|
|
+ $('.tabNameListNoSearch').hide()
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
|