Authored by jack.xue

add queue query

@@ -11,4 +11,6 @@ public class RabbitInfoReq extends PageRequest { @@ -11,4 +11,6 @@ public class RabbitInfoReq extends PageRequest {
11 String moId; 11 String moId;
12 12
13 String moType; 13 String moType;
  14 +
  15 + String queueKey;
14 } 16 }
@@ -48,6 +48,11 @@ @@ -48,6 +48,11 @@
48 <div class="span12"> 48 <div class="span12">
49 <div class="section section-visible"> 49 <div class="section section-visible">
50 <h3>Queues</h3> 50 <h3>Queues</h3>
  51 + <div class="input-group" style="float: right; margin-right: 50px;">
  52 + <input type="text" id="tx_search_queue" width="50" style="display: inline" placeholder="队列关键字"/>
  53 + &ensp; &ensp; &ensp; &ensp;
  54 + <button type="button" class="btn btn-default" data-dismiss="modal" id="search_button">搜索</button>
  55 + </div>
51 <div class="hider updatable" style="display:block;"> 56 <div class="hider updatable" style="display:block;">
52 <table class="table table-bordered table-striped table-hover" id="queueViewTable"> 57 <table class="table table-bordered table-striped table-hover" id="queueViewTable">
53 </table> 58 </table>
@@ -61,6 +66,15 @@ @@ -61,6 +66,15 @@
61 </div> 66 </div>
62 67
63 <script> 68 <script>
  69 + $("#search_button").click(function () {
  70 + var key=$("#tx_search_queue").val();
  71 + $("#queueViewTable").table("load",
  72 + {
  73 + 'moId': moId,
  74 + 'queueKey': key
  75 + })
  76 + })
  77 +
64 </script> 78 </script>
65 79
66 <script src="<%=basePath %>js/rabbit.js" type="text/javascript"></script> 80 <script src="<%=basePath %>js/rabbit.js" type="text/javascript"></script>