Showing
2 changed files
with
87 additions
and
52 deletions
@@ -36,6 +36,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -36,6 +36,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
36 | var bizParentList; | 36 | var bizParentList; |
37 | // 资源视图表格 | 37 | // 资源视图表格 |
38 | var bizListTable; | 38 | var bizListTable; |
39 | + var busHealthKeyWord = ''; | ||
40 | + var busIndexKeyWord = ''; | ||
39 | //点击卡片 | 41 | //点击卡片 |
40 | $('#bizindexTable').unbind('click').on('click', '[data-biz-card]', function () { | 42 | $('#bizindexTable').unbind('click').on('click', '[data-biz-card]', function () { |
41 | var resType = $(this).data("biz-card"); | 43 | var resType = $(this).data("biz-card"); |
@@ -58,9 +60,17 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -58,9 +60,17 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
58 | common.viewBizTopo($(this).data('busid')); | 60 | common.viewBizTopo($(this).data('busid')); |
59 | return false; | 61 | return false; |
60 | }); | 62 | }); |
63 | + //搜索按钮 | ||
64 | + $('#bizSearch').unbind('click').on('click',function (){ | ||
65 | + layer.load(2); | ||
66 | + busIndexKeyWord = $('#bizInputSearch').val(); | ||
67 | + loadBizTree(busIndexKeyWord) | ||
68 | + }) | ||
61 | //回车搜索 | 69 | //回车搜索 |
62 | $('#bizindex_keyword').keydown(function (e) { | 70 | $('#bizindex_keyword').keydown(function (e) { |
63 | if (e.keyCode === 13) { | 71 | if (e.keyCode === 13) { |
72 | + busIndexKeyWord = $(this).val(); | ||
73 | + layer.load(2); | ||
64 | // renderList(busId, curBizResType); | 74 | // renderList(busId, curBizResType); |
65 | reloadTable(); | 75 | reloadTable(); |
66 | return false; | 76 | return false; |
@@ -117,9 +127,10 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -117,9 +127,10 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
117 | autoHeight(bizindexTable); | 127 | autoHeight(bizindexTable); |
118 | window.setResizeEvents('autoHeight', autoHeight); | 128 | window.setResizeEvents('autoHeight', autoHeight); |
119 | admin.req({ | 129 | admin.req({ |
120 | - url: common.domainName + '/api-web/home/resource/countResourceGroupByBusType', | ||
121 | - }).done(function (res) { | ||
122 | - layer.close(loading); | 130 | + url: common.domainName + '/api-web/home/resource/countResourceGroupByBusType?keyword='+busHealthKeyWord, |
131 | + sync: true | ||
132 | + }).always(function (res) { | ||
133 | + layer.closeAll('loading'); | ||
123 | laytpl($('#bizindexTpl').html()).render({list: res.data, isBiz: true}, function (html) { | 134 | laytpl($('#bizindexTpl').html()).render({list: res.data, isBiz: true}, function (html) { |
124 | bizindexTable.html(html); | 135 | bizindexTable.html(html); |
125 | }); | 136 | }); |
@@ -136,7 +147,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -136,7 +147,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
136 | autoHeight(bizindexTable); | 147 | autoHeight(bizindexTable); |
137 | window.setResizeEvents('autoHeight', autoHeight); | 148 | window.setResizeEvents('autoHeight', autoHeight); |
138 | admin.req({ | 149 | admin.req({ |
139 | - url: common.domainName + '/api-web/home/resource/countSecondNum?parentId='+parentId, | 150 | + url: common.domainName + '/api-web/home/resource/countSecondNum?parentId='+parentId+'&keyword='+busIndexKeyWord, |
140 | }).done(function (res) { | 151 | }).done(function (res) { |
141 | layer.close(loading); | 152 | layer.close(loading); |
142 | laytpl($('#bizindexTpl').html()).render({list: res.data, isBiz: true}, function (html) { | 153 | laytpl($('#bizindexTpl').html()).render({list: res.data, isBiz: true}, function (html) { |
@@ -171,6 +182,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -171,6 +182,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
171 | if (val == '' || val == null || val == undefined) { | 182 | if (val == '' || val == null || val == undefined) { |
172 | val = ''; | 183 | val = ''; |
173 | } | 184 | } |
185 | + busHealthKeyWord = val; | ||
174 | admin.req({ | 186 | admin.req({ |
175 | url: common.domainName + '/api-web/home/business/getBusTree?keyword=' + val + '¬Exist=machineroom', | 187 | url: common.domainName + '/api-web/home/business/getBusTree?keyword=' + val + '¬Exist=machineroom', |
176 | sync: true, | 188 | sync: true, |
@@ -262,6 +274,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -262,6 +274,8 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
262 | $(".layui-input-search").keyup(function (e) { | 274 | $(".layui-input-search").keyup(function (e) { |
263 | if (e.keyCode === 13) { | 275 | if (e.keyCode === 13) { |
264 | loadBizTree($(this).val()) | 276 | loadBizTree($(this).val()) |
277 | + busIndexKeyWord = $(this).val(); | ||
278 | + busHealthKeyWord = $(this).val(); | ||
265 | } | 279 | } |
266 | }); | 280 | }); |
267 | 281 | ||
@@ -371,7 +385,6 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -371,7 +385,6 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
371 | $('#biztreeTableContent').hide(); | 385 | $('#biztreeTableContent').hide(); |
372 | 386 | ||
373 | //清除查询条件 | 387 | //清除查询条件 |
374 | - $("#bizindex_keyword").val(""); | ||
375 | $("#biz_resStatus").val(""); | 388 | $("#biz_resStatus").val(""); |
376 | $("#biz_res_colony").val(""); | 389 | $("#biz_res_colony").val(""); |
377 | $("#biz_res_cluster").val(""); | 390 | $("#biz_res_cluster").val(""); |
@@ -407,7 +420,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -407,7 +420,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
407 | , url: common.domainName + '/api-web/home/res-list/' + resTypeList.toString() | 420 | , url: common.domainName + '/api-web/home/res-list/' + resTypeList.toString() |
408 | , where: { | 421 | , where: { |
409 | access_token: accessToken, | 422 | access_token: accessToken, |
410 | - resName: $("#bizindex_keyword").val(), | 423 | + resName: busIndexKeyWord, |
411 | resHealth: $("#biz_resStatus").val(), | 424 | resHealth: $("#biz_resStatus").val(), |
412 | busId: busId, | 425 | busId: busId, |
413 | colonlyId: $("#biz_res_colony").val(), | 426 | colonlyId: $("#biz_res_colony").val(), |
@@ -468,7 +481,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -468,7 +481,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
468 | autoHeight(bizindexTable); | 481 | autoHeight(bizindexTable); |
469 | window.setResizeEvents('autoHeight', autoHeight); | 482 | window.setResizeEvents('autoHeight', autoHeight); |
470 | admin.req({ | 483 | admin.req({ |
471 | - url: common.domainName + "/api-web/datavis/getResTotal/?busId=" + bizId | 484 | + url: common.domainName + "/api-web/datavis/getResTotal/?busId=" + bizId +"&keyWord="+busHealthKeyWord |
472 | , done: function (res) { | 485 | , done: function (res) { |
473 | laytpl($('#bizindexTpl').html()).render({list: res.data}, function (html) { | 486 | laytpl($('#bizindexTpl').html()).render({list: res.data}, function (html) { |
474 | bizindexTable.html(html); | 487 | bizindexTable.html(html); |
@@ -504,7 +517,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -504,7 +517,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
504 | , drag: {toolbar: false} | 517 | , drag: {toolbar: false} |
505 | , where: { | 518 | , where: { |
506 | access_token: accessToken, | 519 | access_token: accessToken, |
507 | - resName: $("#bizindex_keyword").val(), | 520 | + resName: busIndexKeyWord, |
508 | resHealth: $("#biz_resStatus").val(), | 521 | resHealth: $("#biz_resStatus").val(), |
509 | busId: busId, | 522 | busId: busId, |
510 | colonlyId: $("#biz_res_colony").val(), | 523 | colonlyId: $("#biz_res_colony").val(), |
@@ -586,7 +599,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -586,7 +599,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
586 | , url: common.domainName + '/api-web/home/res-list/' + resType | 599 | , url: common.domainName + '/api-web/home/res-list/' + resType |
587 | , where: { | 600 | , where: { |
588 | access_token: accessToken, | 601 | access_token: accessToken, |
589 | - resName: $("#bizindex_keyword").val(), | 602 | + resName: busIndexKeyWord, |
590 | resHealth: $("#biz_resStatus").val(), | 603 | resHealth: $("#biz_resStatus").val(), |
591 | busId: busId, | 604 | busId: busId, |
592 | colonlyId: $("#biz_res_colony").val(), | 605 | colonlyId: $("#biz_res_colony").val(), |
@@ -837,7 +850,6 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -837,7 +850,6 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
837 | //加载资源池、集群等查询条件 | 850 | //加载资源池、集群等查询条件 |
838 | function renderBizSerach(resType, busId, subflag) { | 851 | function renderBizSerach(resType, busId, subflag) { |
839 | //清空查询条件 joke add 20200409 开始 | 852 | //清空查询条件 joke add 20200409 开始 |
840 | - $('#bizindex_keyword').val(''); | ||
841 | $('#biz_resStatus').val(''); | 853 | $('#biz_resStatus').val(''); |
842 | $('#biz_res_colony').val(''); | 854 | $('#biz_res_colony').val(''); |
843 | $('#biz_res_cluster').val(''); | 855 | $('#biz_res_cluster').val(''); |
@@ -996,7 +1008,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | @@ -996,7 +1008,7 @@ layui.define(['tree', 'laypage', 'laytpl', 'admin', 'form', 'table', 'commonCols | ||
996 | } | 1008 | } |
997 | ,where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式) | 1009 | ,where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式) |
998 | access_token: accessToken, | 1010 | access_token: accessToken, |
999 | - resName: $("#bizindex_keyword").val(), | 1011 | + resName: busIndexKeyWord, |
1000 | resHealth: $("#biz_resStatus").val(), | 1012 | resHealth: $("#biz_resStatus").val(), |
1001 | busId: busId, | 1013 | busId: busId, |
1002 | colonlyId: $("#biz_res_colony").val(), | 1014 | colonlyId: $("#biz_res_colony").val(), |
@@ -19,7 +19,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -19,7 +19,8 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
19 | var admin = layui.admin; | 19 | var admin = layui.admin; |
20 | var commonDetail = layui.commonDetail; | 20 | var commonDetail = layui.commonDetail; |
21 | var domainName = common.domainName; | 21 | var domainName = common.domainName; |
22 | - | 22 | + var resHealthKeyWord = ''; |
23 | + var resindexKeyword = ''; | ||
23 | var resTypeSelectExclude = ['HOST_MINICOMPUTER', 'HOST_MINICOMPUTER_SERVER', 'HOST_BMC', 'HOST_X86SERVER'] | 24 | var resTypeSelectExclude = ['HOST_MINICOMPUTER', 'HOST_MINICOMPUTER_SERVER', 'HOST_BMC', 'HOST_X86SERVER'] |
24 | 25 | ||
25 | var curTreeNode = ''; | 26 | var curTreeNode = ''; |
@@ -141,48 +142,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -141,48 +142,16 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
141 | 142 | ||
142 | window.setResizeEvents('autoHeight', autoHeight); | 143 | window.setResizeEvents('autoHeight', autoHeight); |
143 | admin.req({ | 144 | admin.req({ |
144 | - url: common.domainName + '/api-web/home/resource/healthByResType?pResType=' + resType, | 145 | + url: common.domainName + '/api-web/home/resource/healthByResType?pResType=' + resType +'&keyword=' + resHealthKeyWord, |
145 | }).done(function (res) { | 146 | }).done(function (res) { |
146 | laytpl($('#resindexTpl').html()).render({list: res.data}, function (html) { | 147 | laytpl($('#resindexTpl').html()).render({list: res.data}, function (html) { |
147 | resindexTable.html(html); | 148 | resindexTable.html(html); |
149 | + layer.closeAll('loading'); | ||
148 | }); | 150 | }); |
149 | }); | 151 | }); |
150 | } | 152 | } |
151 | 153 | ||
152 | - admin.req({ | ||
153 | - url: common.domainName + '/api-web/home/resType/getTree?notExist=machineroom&table=resources&exist=HOST_MINICOMPUTER_SERVER', | ||
154 | - type: 'get', | ||
155 | - sync: true, | ||
156 | - done: function (res) { | ||
157 | - layer.close(loading); | ||
158 | - loadResTree(res.data); | ||
159 | - //joke add 20200407,如果没有资源树,则默认资源页给提示无数据 开始 | ||
160 | - if (res.data.length === 0) { | ||
161 | - var resindexTable = $('#resindexTable'); | ||
162 | - autoHeight(resindexTable); | ||
163 | - laytpl($('#resindexTpl').html()).render({list: res.data}, function (html) { | ||
164 | - resindexTable.html(html); | ||
165 | - }); | ||
166 | - } | ||
167 | - loadParamSelect(); | ||
168 | - //joke add 20200407,如果没有资源树,则默认资源页给提示无数据 开始 | ||
169 | - } | ||
170 | - }).error(function () { | ||
171 | - layer.close(loading); | ||
172 | - //joke add 20200407 | ||
173 | - //树无数据提示 | ||
174 | - tree.render({ | ||
175 | - elem: '#resindextree', | ||
176 | - showLine: false, | ||
177 | - data: new Array() | ||
178 | - }); | ||
179 | - //右侧无数据提示 | ||
180 | - var resindexTable = $('#resindexTable'); | ||
181 | - autoHeight(resindexTable); | ||
182 | - laytpl($('#resindexTpl').html()).render({list: new Array()}, function (html) { | ||
183 | - resindexTable.html(html); | ||
184 | - }); | ||
185 | - }); | 154 | + |
186 | 155 | ||
187 | //不带分页的列表 | 156 | //不带分页的列表 |
188 | function renderTableList(resType) { | 157 | function renderTableList(resType) { |
@@ -243,7 +212,44 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -243,7 +212,44 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
243 | }); | 212 | }); |
244 | } | 213 | } |
245 | //左侧树 | 214 | //左侧树 |
246 | - function loadResTree(data) { | 215 | + function loadResTree(val) { |
216 | + admin.req({ | ||
217 | + url: common.domainName + '/api-web/home/resType/getTree?notExist=machineroom&table=resources&exist=HOST_MINICOMPUTER_SERVER&keyword='+val, | ||
218 | + type: 'get', | ||
219 | + sync: true, | ||
220 | + done: function (res) { | ||
221 | + layer.close(loading); | ||
222 | + treeList(res.data); | ||
223 | + //joke add 20200407,如果没有资源树,则默认资源页给提示无数据 开始 | ||
224 | + if (res.data.length === 0) { | ||
225 | + var resindexTable = $('#resindexTable'); | ||
226 | + autoHeight(resindexTable); | ||
227 | + laytpl($('#resindexTpl').html()).render({list: res.data}, function (html) { | ||
228 | + resindexTable.html(html); | ||
229 | + }); | ||
230 | + renderIndex('') | ||
231 | + } | ||
232 | + loadParamSelect(); | ||
233 | + //joke add 20200407,如果没有资源树,则默认资源页给提示无数据 开始 | ||
234 | + } | ||
235 | + }).error(function () { | ||
236 | + layer.close(loading); | ||
237 | + //joke add 20200407 | ||
238 | + //树无数据提示 | ||
239 | + tree.render({ | ||
240 | + elem: '#resindextree', | ||
241 | + showLine: false, | ||
242 | + data: new Array() | ||
243 | + }); | ||
244 | + //右侧无数据提示 | ||
245 | + var resindexTable = $('#resindexTable'); | ||
246 | + autoHeight(resindexTable); | ||
247 | + laytpl($('#resindexTpl').html()).render({list: new Array()}, function (html) { | ||
248 | + resindexTable.html(html); | ||
249 | + }); | ||
250 | + }); | ||
251 | + } | ||
252 | + function treeList(data){ | ||
247 | //默认展开全部一级节点 | 253 | //默认展开全部一级节点 |
248 | $.each(data,function (i,v) { | 254 | $.each(data,function (i,v) { |
249 | v.spread = true; | 255 | v.spread = true; |
@@ -681,11 +687,28 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -681,11 +687,28 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
681 | //回车搜索 | 687 | //回车搜索 |
682 | $('#resindex_keyword').keydown(function (e) { | 688 | $('#resindex_keyword').keydown(function (e) { |
683 | if (e.keyCode === 13) { | 689 | if (e.keyCode === 13) { |
690 | + resindexKeyword = $(this).val(); | ||
684 | // renderList(currentResType); | 691 | // renderList(currentResType); |
685 | reloadTable(); | 692 | reloadTable(); |
686 | return false; | 693 | return false; |
687 | } | 694 | } |
688 | }); | 695 | }); |
696 | + $(".layui-input-search").keydown(function (e) { | ||
697 | + if (e.keyCode === 13) { | ||
698 | + layer.load(2) | ||
699 | + loadResTree($(this).val()); | ||
700 | + resHealthKeyWord = $(this).val(); | ||
701 | + resindexKeyword = $(this).val(); | ||
702 | + } | ||
703 | + }); | ||
704 | + //搜索按钮 | ||
705 | + $('#resSearch').unbind('click').on('click',function (){ | ||
706 | + resindexKeyword = $('#inputSearch').val(); | ||
707 | + resHealthKeyWord = $('#inputSearch').val(); | ||
708 | + layer.load(2) | ||
709 | + loadResTree(resindexKeyword) | ||
710 | + }) | ||
711 | + loadResTree(''); | ||
689 | 712 | ||
690 | //资源详细信息 | 713 | //资源详细信息 |
691 | function renderDetail(resId, resType) { | 714 | function renderDetail(resId, resType) { |
@@ -991,7 +1014,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -991,7 +1014,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
991 | , url: common.domainName + '/api-web/home/res-list/' + resType | 1014 | , url: common.domainName + '/api-web/home/res-list/' + resType |
992 | , where: { | 1015 | , where: { |
993 | access_token: accessToken, | 1016 | access_token: accessToken, |
994 | - resName: $("#resindex_keyword").val(), | 1017 | + resName: resindexKeyword, |
995 | busId: bizId, | 1018 | busId: bizId, |
996 | resHealth: $("#resStatus").val(), | 1019 | resHealth: $("#resStatus").val(), |
997 | colonlyId: $("#res_colony").val(), | 1020 | colonlyId: $("#res_colony").val(), |
@@ -1127,7 +1150,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1127,7 +1150,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1127 | , url: common.domainName + '/api-web/home/res-list/' + resType | 1150 | , url: common.domainName + '/api-web/home/res-list/' + resType |
1128 | , where: { | 1151 | , where: { |
1129 | access_token: accessToken, | 1152 | access_token: accessToken, |
1130 | - resName: $("#resindex_keyword").val() !== '' ? $("#resindex_keyword").val() : id, | 1153 | + resName: resindexKeyword !== '' ? resindexKeyword : id, |
1131 | busId: bizId, | 1154 | busId: bizId, |
1132 | resHealth: $("#resStatus").val(), | 1155 | resHealth: $("#resStatus").val(), |
1133 | colonlyId: $("#res_colony").val(), | 1156 | colonlyId: $("#res_colony").val(), |
@@ -1158,6 +1181,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1158,6 +1181,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1158 | resTopo(); | 1181 | resTopo(); |
1159 | 1182 | ||
1160 | commonCols.colsClickEvent(editFlag); | 1183 | commonCols.colsClickEvent(editFlag); |
1184 | + loadRightResTypeSelectEvent(curTreeNode.id ? curTreeNode.id : curTreeNode.data.id, "normal", res.obj); | ||
1161 | 1185 | ||
1162 | //表格排序监听 joke add 20200408 | 1186 | //表格排序监听 joke add 20200408 |
1163 | table.on('sort(resListTable)', function (obj) { | 1187 | table.on('sort(resListTable)', function (obj) { |
@@ -1212,7 +1236,6 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1212,7 +1236,6 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1212 | //加载资源池、集群等查询条件 | 1236 | //加载资源池、集群等查询条件 |
1213 | function renderSerach(resType,subflag) { | 1237 | function renderSerach(resType,subflag) { |
1214 | //清空查询条件 joke add 20200409 开始 | 1238 | //清空查询条件 joke add 20200409 开始 |
1215 | - $('#resindex_keyword').val(''); | ||
1216 | $('#resStatus').val(''); | 1239 | $('#resStatus').val(''); |
1217 | // $('#resListBizTypes').val(''); | 1240 | // $('#resListBizTypes').val(''); |
1218 | if(xmSelect.get("#resListBizTypes") && xmSelect.get("#resListBizTypes")[0]){ | 1241 | if(xmSelect.get("#resListBizTypes") && xmSelect.get("#resListBizTypes")[0]){ |
@@ -1522,7 +1545,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | @@ -1522,7 +1545,7 @@ layui.define(['common', 'tree', 'laypage', 'laytpl', 'admin', 'form', 'table', ' | ||
1522 | } | 1545 | } |
1523 | , where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式) | 1546 | , where: { //请求参数(注意:这里面的参数可任意定义,并非下面固定的格式) |
1524 | access_token: accessToken, | 1547 | access_token: accessToken, |
1525 | - resName: $("#resindex_keyword").val(), | 1548 | + resName: resindexKeyword, |
1526 | busId: bizId, | 1549 | busId: bizId, |
1527 | resHealth: $("#resStatus").val(), | 1550 | resHealth: $("#resStatus").val(), |
1528 | colonlyId: $("#res_colony").val(), | 1551 | colonlyId: $("#res_colony").val(), |
-
Please register or login to post a comment