浏览代码

图谱搜索无结果提示(3336)

zhangxc 5 年之前
父节点
当前提交
b8ac4d143e
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/js/graphMap.js

+ 5 - 0
src/js/graphMap.js

@@ -12,6 +12,11 @@ function getGraph(val, type){
             select_type = select_type_noSearch
             $('#searchInp').val(val)
             drawGraph(res.data.data)
+        }else{
+            let nodeStr
+            nodeStr = '<li class="ellipsis">暂无符合数据</li>'
+            $(".tabNameList").html(nodeStr)
+            $(".tabNameList").show()
         }
     })
 }