diff --git a/hg-monitor-web-zj/src/main/resources/static/src/controller/resindex.js b/hg-monitor-web-zj/src/main/resources/static/src/controller/resindex.js index 92dacfc..bf4da13 100644 --- a/hg-monitor-web-zj/src/main/resources/static/src/controller/resindex.js +++ b/hg-monitor-web-zj/src/main/resources/static/src/controller/resindex.js @@ -226,6 +226,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' laytpl($('#resindexTpl').html()).render({list: res.data}, function (html) { resindexTable.html(html); }); + renderIndex('') } loadParamSelect(); //joke add 20200407,如果没有资源树,则默认资源页给提示无数据 开始 @@ -699,9 +700,10 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' }); $(".layui-input-search").keydown(function (e) { if (e.keyCode === 13) { - loadResTree($(this).val()); resHealthKeyWord = $(this).val(); resindexKeyword = $(this).val(); + loadResTree($(this).val()); + } }); //搜索按钮